$ sudo yum install golang
$ go version
go version go1.15.14 linux/amd64
### 基礎
package main import( "fmt" ) func main(){ // var name string = "yamada" name := "yamada" fmt.Println(name) }
$ go build hello.go && ./hello
yamada
なんか世界観が変わるな
import( "fmt" "time" ) func main(){ fmt.Println("The time is", time.Now()) }
$ go build hello.go && ./hello
The time is 2021-09-16 07:03:44.729927623 +0900 JST m=+0.000027657
なるほど、Go言語とTypeScriptで攻めたい