Registry / serialization / lunixbochs-struc

lunixbochs-struc

JSON →
library0.0.0-20241101090106-8d528fa2c543gogounverified

Package struc provides binary packing and unpacking for Go structs.

go get github.com/lunixbochs/struc
INSTALL
IMPORT
SIG · LUNIXBOCHS-STRUC
L
lunixbochs-struc
serializationgov0.0.0-20241101090106-8d528fa2c543
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.

struc
github.com/lunixbochs/struc

Pack a struct into binary format

package main import ( "bytes" "fmt" "github.com/lunixbochs/struc" ) type Example struct { A int `struc:"int32"` } func main() { var e Example buf := new(bytes.Buffer) struc.Pack(buf, &e) fmt.Println(buf.Bytes()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20241101090106-8d528fa2c543latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lunixbochs-struc — go get lunixbochs-struc · libregistry