go test -coverprofile=coverage.out
go tool cover -html=coverage.out
go test -cover .
go run ./cmd/web
go test -timeout 30s -run ^Test_application_handlers$ webapp/cmd/web
go test -timeout 30s -v -run TestAdd
go test -run TestAdd ./chapter02/calculator -v
// Convert2Err error to string
func Convert2Err(err error) string {
byteData := []byte(fmt.Sprintf("%v", err))
return string(byteData)
}
err error
err = fmt.Errorf("reqRoot.Context.System.ApiEndpoint is empty")