February 2020
Intermediate to advanced
404 pages
8h 42m
English
A UUID is a unique identifier for a resource or a transaction. UUIDs are widely used for identifying an HTTP request. Let us develop an API for generating a UUID. Please follow these steps:
touch -p $GOPATH/src/github.com/git-user/chapter2/uuidGenerator/main.go
import ( "crypto/rand" "fmt")// UUID is a custom multiplexertype UUID struct {}func (p *UUID) ServeHTTP(w http.ResponseWriter, r *http.Request) ...Read now
Unlock full access