Select Select bắt luồng công việc hiện tại đợi một trong cách trường hợp xảy ra. Khi một trường hợp...
Golang
Golang posts
Thư viện https://github.com/sirupsen/logrus Ví dụ sử dụng package main import ( log "github.com/sirupsen/logrus" ) func main() { log.WithFields(log.Fields{ "anima": "walrus",...
Value receiver Với ví dụ như sau: type Foo struct{ Data string } func (f Foo) funcA(){ f.Data = "XXX"...
Link package: https://github.com/spf13/viper File config mẫu: database: address: 127.0.0.1:1000 Code minh họa đọc file config: package main import ( "fmt"...
Marshal => StringEncode => Stream Marshal và Unmarshal được sử dụng để chuyển từ JSON thành string và ngược lại....