GIR-GENERATOR(1)

✨ NAME ✨

okay so bestie, meet gir-generator β€” it's Deepin's Golang Gir Generator, and it's literally the whole reason this manual page exists. it's from the General Commands Manual section of your man pages, section 1, iykyk πŸŽ€


🌸 SYNOPSIS 🌸

gir-generator [FLAGS] <dir>

that's it, that's the shape of it. flags first, then the directory. slay. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this manual page is here to give you the lowdown on the gir-generator command, which ships as part of the golang-gir-generator package. consider this your little tour. 🫢

the binary program gir-generator is the static binding code generator. yes, it generates binding code, statically. it's giving ✨automation✨.

and here's the part you actually need to know: it reads the GIRepository and template files from the lib.in directory. no cap, that's where it's pulling from. πŸ“‚


πŸ’– OPTIONS πŸ’–

  • -config <string> β€” points at the global config file you wanna use. specify it, bestie.
  • -o <string> β€” overrides the output directory. so like, you don't have to live with whatever default it had in mind. main character energy. πŸ‘‘

🌈 EXAMPLE 🌈

okay so here's the actual vibe, walk with me:

cd lib.in/gobject-2.0

gir-generator -o . gobject.go.in

first you hop into lib.in/gobject-2.0 β€” cd into it, no biggie β€” and then you run the generator with -o . so the output lands right there in the current directory, feeding it gobject.go.in. obsessed. it ate. πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘

this program is further documented in the README.md that comes with this debian package, chillin' under the /usr/share/doc/golang-gir-generator/ directory. go read it if you want the extended lore. πŸ“šβœ¨


πŸŽ€ AUTHOR πŸŽ€

gir-generator is written by Deepin Technology Co., Ltd. πŸ’œ

this manual page was written by Arun Kumar Pariyar for the Debian Project (but like, it may be used by others too β€” sharing is caring, periodt).


a lil' sign-off from the source: this is the Deepin version, dated 2020-05-25, and it lives in the General Commands Manual as GIR-GENERATOR(1). bye bestie, go generate some bindings πŸ’…πŸ¦‹