#go
Read more stories on Hashnode
Articles with this tag
We can use channels to easily simulate a worker pool: package main import ( "fmt" "time" ) func main() { numWorkers := 5 numJobs :=...
Install packages: go get github.com/aws/aws-sdk-go go get github.com/gabriel-vasile/mimetype Files In main.go package main import ( "fmt" ...
Use 3rd-party package to generate uuidv4 string: Step 1 Install package: go get github.com/google/uuid Step 2 Call function: func main() { ...
1, LoadLocation 2, Call time.In method package main import ( "log" "time" ) func main() { t := time.Now() loc, err :=...
Search Transaction with Golang package main import ( "context" "encoding/json" "fmt" "os" "strings" ...
Hmac Use crypto/hmac to calculate message authentication code. hmac & use md5 as digest method package main import ( "fmt" "crypto/hmac" ...