- 博客(5)
- 收藏
- 关注
原创 Go:Variable Definition
package mainimport( "fmt")func main() { var message string = "hello world" //var message = "hello world" //message := "hello world" fmt.Println(message)}
2018-01-07 20:51:28
198
原创 Go:HttpServer
package main import ( “io” “net/http” ) type MyHandler struct{} func (this MyHandler) ServeHTTP(response http.ResponseWriter, request *http.Request) { io.WriteString(response, “hello
2017-10-20 19:08:24
237
原创 Go:001_Hello World
package main import ( "fmt" ) func main() { fmt.Println("hello world") }
2017-10-20 19:06:28
175
原创 Go:Struct Tag
package mainimport ( "fmt" "reflect")type Person struct { Name string `table:"person" column:"name"` Age int32 `column:"age"`}func main() { frank := Person{ "frank",
2017-10-20 19:03:14
338
原创 Go:Date/Time Format
package mainimport ( "fmt" "time")func main() { //6-1-2-3(15)-4-5 var now = time.Now().Format("2006-01-02 15:04:05") fmt.Println(now)}
2017-10-09 23:53:43
561
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人