LoginSignup
0
0

More than 3 years have passed since last update.

importについて

Last updated at Posted at 2019-05-31

書き方

//ひとつのとき
import "fmt"

//複数のとき
import (
    "fmt"
    "time"
)

注意

package main

import (
    "fmt"
    "time"
)

func main() {
    fmt.Println("hello world")
}

"time"がインポートされてるのに、関数で使ってない場合はエラー扱いになる。

参考
現役シリコンバレーエンジニアが教えるGo入門(https://www.udemy.com/share/100BhMB0obeFpbTX4=/)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0