- สร้าง Go project ใหม่โดยการสร้าง module ใหม่สำหรับ Go program
- โครงสร้าง Go โปรแกรมประกอบด้วย
- package main
- func main
- use other packages by import.
- go run
- go build
- var
- package scope var
- function scope var
- short declaration and initialization
- zero value (default value)
- fmt
- Println
- Printf
- Scanln
- Scanf
- basic type
- int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64
- float64, float32
- string
- bool
- rune
- byte
- advanced type
- array
- slice
- map
- struct
- interface
- math operator
- +, -, *, /, %
- ++, --
- +=, -=, *=, /=, %=
- comparation operator
- ==, !=, <, >, <=, >=
- boolean operator
- &&, ||
- !
- string operator
- +
- +=
- loop
- for
- if, else
- switch
Created
September 13, 2023 08:56
-
-
Save iporsut/9d5252f9030014f5c55c687c343ebb97 to your computer and use it in GitHub Desktop.
Go workshop day1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment