ENGLISH

From Ruby to Golang : A Ruby Programmer's Guide to Learning Go

Book information

Publisher
leanpub.com
Year
2019
ISBN
1080944001, 9781080944002
Language
english
Format
PDF
Filesize
592 kB (606512 bytes)
Pages
\166
Time added
2022-08-03 08:51:27

Description

By teaching familiar implementations found in Ruby, you will see the correlation between the two languages, establishing familiar concepts to give you enough knowledge to be comfortable with Go and to start programming with it. Imagine that you like to learn a new programming language, and you start by leveraging what you already know and bridge the gap in learning specific parts of the new language. This book was created on that idea, it starts with using my existing language knowledge and experience to breakdown Go into familiar Ruby concepts and implementations. By teaching familiar implementations found in Ruby, you will see the correlation between the two languages, establishing familiar concepts to give you enough knowledge to be comfortable with Go and to start programming with it. In today's world of cloud native microservices, containerized architectures, You can be up-to-date with a knowledge in Go. Many notable open-source projects are built using Go (i.e. Docker, Kubernetes, Ethereum and Terraform to name a few), and those platforms have APIs and SDKs readily available natively for you to use. And many global companies have been using Go in production (i.e. Google, Netflix, Dropbox, Heroku and Uber to name a few), proving that it has been battle-tested and powerful mature language to based your work into. This book was made with a Rubyist in mind, all the learning metaphors are based on Ruby and I think it will help you to learn Go programming language when you already knows Ruby. Go can be your second or third programming language and this book can help you get started. Table of Contents Preface Introduction About the Author Setter/Getters, Attribute Accessors and Structs Instance Variables Struct Public Structs Attaching a Struct to a Function Pass-by-value and Pass-by-reference Pointer Receiver Value Receiver Decouple and Reuse Structs through Inheritance Anonymous Structs Anonymous Struct Fields Chapter Questions Hash and Maps Maps by Declaration Initialization by Make Initialization by Literal Type Assignment Maps by Assignment Assignment with a Key/Value Assignment on an Empty Map Using Struct in Maps Struct Maps by Declaration Struct Maps by Assignment Struct Maps with Array Values Maps with Dynamic Types Deleting Map Values Reading a Non-Present Key from a Map Variadic Functions Variadic Interface Maps with Variadic Interface Chapter Questions Arrays and Slices Fixed Array Fixed-Array Automatic Size Calculation Fixed-Array Sizes Fixed-Array Assignment Behaviour Sliced Array Sliced-Array Assignment Behaviour Capacity Deep Copy Append Arrays with Variadic Types Empty Interface Array Type Chapter Questions Navigating your Arrays C-style Semantic Form Value Semantic Form Value Semantic Form with Muted Parameter Index Semantic Form for Range Value Semantic Form with Pointer Access Chapter Questions Package Management Sharing Go Packages Package Management using Go Modules Manual go.mod Generation Automatic go.mod Generation Through Source-Code Automatic go.mod Generation Through dep Package Manager Refresh Go Modules Package Management using Dep Chapter Questions Collection Functions in Go Predicate Method all? Predicate Method any? Collect Enumerable Method Cycle Enumerable Method Detect Enumerable Method Drop Enumerable Method Drop While Enumerable Method Chapter Questions Organizing your Functions using Interface Interface as a Self-Documenting API Reference Interface as Type contract Satisfying Return Values Chapter Questions Glossary Acknowledgments Credits

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF