slogbox
A slog.Handler that keeps the last N log records in a fixed-size circular buffer. Black box recorder for Go
File Explorer
- ci.yml
- .actrc
- .gitignore
- .mise.toml
- example_test.go
- go.mod
- handler.go
- handler_bench_test.go
- handler_test.go
- http.go
- http_test.go
- LICENSE
- README.md
- recorder.go
- slogbox.png
- writeto.go
- writeto_jsonv2.go
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
go get
View Details ▼
go get
Add a dependency package, or download packages in legacy GOPATH mode.
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.
go get {{example.com/pkg}}
Add a specified package to `go.mod` in module-mode or install the package in GOPATH-mode:
go get {{example.com/pkg}}@{{v1.2.3}}
Modify the package with a given version in module-aware mode:
go get {{example.com/pkg}}@{{none}}
Remove a specified package:
size
View Details ▼
size
Display the sizes of sections inside binary files.
size {{path/to/file}}
Display the size of sections in a given object or executable file:
size {{[-o|--radix=8]}} {{path/to/file}}
Display the size of sections in a given object or executable file in [o]ctal:
size {{[-d|--radix=10]}} {{path/to/file}}
Display the size of sections in a given object or executable file in [d]ecimal:
