- Notifications
You must be signed in to change notification settings - Fork34
sagar-jadhav/go-examples
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The purpose ofgo-examples project is to learn Go programming language through simple programs which will cover all the concepts & syntax of Go programming language. Instead of directly going deep dive into complex concepts it is always better to start with the basics in order to understand any programming language easily, Same concept will be applied togo-examples as well. I have started with the basics and then slowly moving to complex concepts.
“Go will be the server language of the future.” — Tobias Lütke, Shopify
- Its Open Source!
- Go focuses on simplicity, conciseness, readability ,concurrency and performance.
- Go has rich support for concurrency using goroutines and channels.
- Code written in Go is easy to maintain.
Clonego-examples and open with any text editor or IDE. I preferAtom to work with Go programming language.
To perform hands-on ongo-examples it is prerequisite to have Go installed on your machine.Steps to install Go
- Hello World
- Variable Declaration
- If Else Statement
- Switch Statement
- For Loop
- Functions
- Variadic Functions
- Closure
- Recursion
- Boolean Expressions
- Comparison Operators
- Math functions
- Format Verbs
- String length
- Pointer
- Arrays
- Slice
- Map
- Interface
- Struct
- Stack
- Unit Test
Pull requests are welcome. I will appreciate any help on either enhancing existing example/program or addition of new example/program.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
The Pull Request template can be foundhere