PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: confidence

Golang Cheat Sheet

Go Cheat SheetCreditsMost example code taken from A Tour of Go, which is an excellent introduction to Go. If you're new to Go, do that tour. HTML Cheat Sheet by Ariel Mashraki (a8m): in a Nutshell Imperative language Statically typed Syntax similar to Java/C/C++, but less parentheses and no semicolons Compiles to native code (no JVM) No classes, but structs with methods Interfaces No implementation inheritance. There's type embedding, though. Functions are first class citizens Functions can return multiple values Has closures Pointers, but not pointer arithmetic Built-in concurrency primitives: Goroutines and Channels Basic SyntaxHello WorldFile :package mainimport "fmt"func main() { ("Hello Go")}$ go run +addition-subtraction*multiplication/quo tient%remainder&bitwise AND|bitwise OR^bitwise XOR&^bit clear (AND NOT)<<left shift>>right shift (logical)ComparisonOperatorDescription== equal!

Go Cheat Sheet Credits Most example code taken from A Tour of Go, which is an excellent introduction to Go. If you're new to Go, do that tour. Seriously.

Loading..

Tags:

  Golang

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of Golang Cheat Sheet

Related search queries