Skip to content

Latest commit

 

History

History
98 lines (83 loc) · 4.12 KB

README.md

File metadata and controls

98 lines (83 loc) · 4.12 KB

Go For Beginners

This is a set of example programs in Go (golang) to learn Go. The Go language is often referred to as golang to help searches.

How to run ?

INDEX : TODO

  • package : main.go , package.go
  • import : main.go
  • exported-name : main.go
  • function, named return values : package go-playbook/function
  • function values : function-values.go
  • variables , short variable declarations: main.go
  • constants : package go-playbook/function
  • for : control/control.go
  • switch : switch.go
  • defer : defer.go
  • pointer : pointer.go
  • struct : struct.go
  • struct literals : struct-literals.go
  • array : array.go
  • array slice : array_slice.go , making-slice.go , slice_literals.go, slice-len-cap.go
  • interface : interface.go , interface-values.go , interfaces-are-satisfied-implicitly.go
  • empty interface : empty-interface.go
  • method : method.go
  • range : range.go
  • stringers : stringers.go
  • error : error.go
  • type switch : type-assertions.go
  • concurrency : package concurrency

Advanced

GO Vendor

ORM

  • This package is a sample with GORM and sqlite
  • install GORM and go-sqlite3 (go get -u github.com/jinzhu/gorm , go get github.com/mattn/go-sqlite3)
  • Refer the orm/init.go for the implementation

Contribute

corrections and any contributions are encouraged, please submit a pull request with your change or an issue for a bug or fix.

Resources

This set of examples assumes a certain level of programming experience and is intended for someone learning the Go language and not someone new to programming altogether.

The official site has a Tour of Go which is an interactive walk through, another good introduction to the language.

Other references

Blogs & Articles