EASYJSON(1)
π EASYJSON π
okay bestie, lemme put you on. easyjson is the fast JSON serializer for Go, and it's literally here to make your structs go brrr. this is the easyjson(1) situation, User Commands section, and we're gonna walk through it together π«Ά
β¨ NAME β¨
easyjson β Fast JSON serializer for Go π
πΈ DESCRIPTION πΈ
here's the whole deal, no gatekeeping. this is the usage of that one binary that lives deep in the build dir:
/build/golang-github-mailru-easyjson-58I1Wy/golang-github-mailru-easyjson-0.9.1/debian/tmp/usr/bin/easyjson
and here's every flag it takes, one by one, including the ones with a string value that you actually gotta fill in. don't skip any, i know you won't π₯
-allβ generate marshalers/unmarshalers for all the structs in a file, not just the ones you hand-picked. go big or go home β¨-build_tags stringβ the build tags you wanna slap onto the generated file. yes, you gotta give it a string, it's not a vibe-only flag.-byteβ use plain simple bytes instead ofBase64Bytesfor a slice of bytes. lowkey a nice one.-disable_members_unescapeβ don't do the unescaping of member names, which is literally there to improve performance. speed β¨-disallow_unknown_fieldsβ return an error if any unknown field shows up in the json. strict gf energy, she does NOT tolerate strangers π-gen_build_flags stringβ build flags to use when running the generator while bootstrapping. again: string, bestie, you gotta pass one.-leave_tempsβ do not delete the temporary files. they stay. they live here now π-lower_camel_caseβ uselowerCamelCasenames instead ofCamelCaseby default. aesthetic choice, iconic-no_std_marshalersβ don't generateMarshalJSON/UnmarshalJSONfuncs. none. zero. zip. π-noformatβ do not rungofmt -won the output file. your formatting, your problem π-omit_emptyβ omit empty fields by default. minimalism is a lifestyle πΈ-output_filename stringβ specify the filename of the output. one string, one destiny.-pkgβ process the whole package instead of just the given file. main character energy for the entire package π-snake_caseβ usesnake_casenames instead ofCamelCaseby default. python girlies found shaking-stubsβ only generate stubs for the marshaler/unmarshaler funcs. skeleton crew, but make it fashion π¦-versionβ print version and exit. the classic "who even are you" move π
β οΈ quick vibe check: these flags are listed here exactly as the binary prints them, so copy them character for character when you use them. no improvising on the spelling, i'm begging π«Ά
and that's the whole page, periodt π this was easyjson(1) from the User Commands crew β easyjson 0.9.1-2, dated July 2026. go serialize something pretty, bestie, you're literally gonna slay ππβ¨
π¦ where this page comes from
- ubuntu stonking: golang-easyjson 0.9.1-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms