1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Go log

Posted at

logを学んだのでまとめておきます。

logのパッケージを使って出力すると

生年月日や時間が出力されます。

main.go
package main

import "log"

func main(){
   //logを出力
   log.Println("hello")

   //型や値を出力
   log.Printf("%T %v", "hello", "hello")

   //コードが終了する
   log.Fatalln("hello")
}

現時点で学んだ内容をまとめました。

随時更新していきます。

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?