Directories
¶
| Path | Synopsis |
|---|---|
|
fixtures
|
|
|
gb-basic/src/cmd/fixture
command
|
|
|
gb-vendor/src/cmd/fixture
command
|
|
|
glide-massage-vendor
command
|
|
|
glide-simple
command
|
|
|
glide-with-deps
command
|
|
|
glide-wo-deps
command
|
|
|
godep-basic
command
|
|
|
godep-basic-go14
command
|
|
|
godep-basic-go17
command
|
|
|
godep-bin-file
command
|
|
|
godep-cgo-basic
command
|
|
|
godep-cgo-vendored
command
|
|
|
godep-devel-go
command
|
|
|
godep-ld-symbol-value
command
|
|
|
godep-ld-symbol-value-go14
command
|
|
|
godep-massage-vendor
command
|
|
|
godep-old-workspace
command
|
|
|
godep-old-workspace/Godeps
command
|
|
|
godep-old-workspace/Godeps/_workspace/src/github.com/heroku/slog
Package slog provides some Structred Logging helpers ATM: Mostly used to hold some context for a http handler and log at the end of a request Generally should provide the oposite of logfmt: https://github.com/kr/logfmt Sample use in a http.HandleFunc http.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) { start := time.Now() ctx := slog.Context{} defer func() { fmt.Println(ctx) }() defer func() { ctx.Measure("health.check.duration", time.Since(start)) }() ctx.Count("health.check",1) ...stuff }) Produces a line like so for every request: count#health.check=1 measure#health.check.duration=0.004s
|
Package slog provides some Structred Logging helpers ATM: Mostly used to hold some context for a http handler and log at the end of a request Generally should provide the oposite of logfmt: https://github.com/kr/logfmt Sample use in a http.HandleFunc http.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) { start := time.Now() ctx := slog.Context{} defer func() { fmt.Println(ctx) }() defer func() { ctx.Measure("health.check.duration", time.Since(start)) }() ctx.Count("health.check",1) ...stuff }) Produces a line like so for every request: count#health.check=1 measure#health.check.duration=0.004s |
|
godep-package-spec/cmd/fixture
command
|
|
|
godep-vendor
command
|
|
|
godep-vendor-go17
command
|
|
|
godep-with-package-names/pkg
command
|
|
|
govendor-basic
command
|
|
|
govendor-excluded
command
|
|
|
govendor-missing-rootPath
command
|
Click to show internal directories.
Click to hide internal directories.