Directories
¶
| Path | Synopsis |
|---|---|
|
cf_spec
|
|
|
fixtures/go99/src/go99
command
|
|
|
fixtures/go_16_app/src/go_app
command
|
|
|
fixtures/go_app/src/go_app
command
|
|
|
fixtures
|
|
|
util/proxy
module
|
|
|
test
|
|
|
fixtures/godep-basic
command
|
|
|
fixtures/godep-bin-file
command
|
|
|
fixtures/godep-cgo-basic
command
|
|
|
fixtures/godep-devel-go
command
|
|
|
fixtures/godep-ld-symbol-value
command
|
|
|
fixtures/godep-massage-vendor
command
|
|
|
fixtures/godep-old-workspace
command
|
|
|
fixtures/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 |
|
fixtures/godep-vendor
command
|
|
|
fixtures/govendor-basic
command
|
|
Click to show internal directories.
Click to hide internal directories.