on 2019-09-03
golang - note log
時間格式的雷
2006-01-02 15:04:05
https://golang.org/pkg/time/#Time.Format
Array
確認 type
import "reflect"
x := 7
reflect.TypeOf(x).Kind();
Convert interface to string
var x interface{} = "abc"
str := fmt.Sprintf("%v", x)
Print statuct
fmt.Printf("%+v\n", struct)