Registry / utility / cratonica-2goarray

cratonica-2goarray

JSON →
library0.0.0-20190331194516-514510793eaagogounverified

2goarray converts binary data to a Go byte array literal for embedding.

go get github.com/cratonica/2goarray
INSTALL
IMPORT
SIG · CRATONICA-2GOARRAY
C
cratonica-2goarray
utilitygov0.0.0-20190331194516-514510793eaa
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.

twoarray
github.com/cratonica/2goarray

Converts a byte slice to a Go array literal string.

package main import ( "fmt" "github.com/cratonica/2goarray" ) func main() { data := []byte{0x48, 0x65, 0x6c, 0x6c, 0x6f} result := twoarray.ToGoArray(data, "myData") fmt.Println(result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190331194516-514510793eaalatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
cratonica-2goarray — go get cratonica-2goarray · libregistry