More than 1 year has passed since last update.
書き方
//ひとつのとき
import "fmt"
//複数のとき
import (
"fmt"
"time"
)
注意
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println("hello world")
}
"time"
がインポートされてるのに、関数で使ってない場合はエラー扱いになる。
参考
現役シリコンバレーエンジニアが教えるGo入門(https://www.udemy.com/share/100BhMB0obeFpbTX4=/)
Why not register and get more from Qiita?
- We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin