Registry / serialization / projectdiscovery-gostruct

projectdiscovery-gostruct

JSON →
library0.0.2gogounverified

A Go library for converting structs to various formats, used in ProjectDiscovery tools.

go get github.com/projectdiscovery/gostruct
INSTALL
IMPORT
SIG · PROJECTDISCOVERY-G
P
projectdiscovery-gostruct
serializationgov0.0.2
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.

gostruct
github.com/projectdiscovery/gostruct

Convert a struct to JSON using gostruct.

package main import ( "fmt" "github.com/projectdiscovery/gostruct" ) type Config struct { Name string } func main() { c := Config{Name: "test"} fmt.Println(gostruct.ToJSON(c)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources