Registry / utility / dmitriyvtitov-size

dmitriyvtitov-size

JSON →
library1.5.0gogounverified

A Go library for calculating the runtime memory size of variables, including structs and maps.

go get github.com/DmitriyVTitov/size
INSTALL
IMPORT
SIG · DMITRIYVTITOV-SIZE
D
dmitriyvtitov-size
utilitygov1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

size
github.com/DmitriyVTitov/size

Calculate the memory size of an integer variable.

package main import ( "fmt" "github.com/DmitriyVTitov/size" ) func main() { var x int = 42 fmt.Println(size.Of(x)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Meta
1
Amazon
1
Resources
dmitriyvtitov-size — go get dmitriyvtitov-size · libregistry