GO basics of a language

 1.go language keywords

2.go language predefined identifiers

3. constants and variables

4. Basic Types

Boolean, numeric types (int, float), string type, derived type

1) Digital Type - Integer

2) Digital Type - Float

3) Other types of digital

 

5. Notes

1) "{" alone can not be on the line, or run error;

2) a statement on behalf of the end of line, like other languages ​​do not need a semicolon (;) at the end;

3) Go language string can be achieved by +:

package main
import "fmt"
func main() {
    fmt.Println("Google" + "Runoob")
}

Output: GoogleRunoob

 

Released eight original articles · won praise 2 · Views 345

Guess you like

Origin blog.csdn.net/miss_74735/article/details/105112772