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 π π¦
π¦ where this page comes from
- debian bookworm: golang-gir-generator 2.2.0-1 Β· GPL-3.0-or-later
- debian trixie: golang-gir-generator 2.2.0-1+b1 Β· GPL-3.0-or-later
- ubuntu jammy: golang-gir-generator 2.0.4~git20211109.4b0a2df-1 Β· GPL-3.0-or-later
- ubuntu noble: golang-gir-generator 2.2.0-1build2 Β· GPL-3.0-or-later
- ubuntu questing: golang-gir-generator 2.2.0-1build2
- ubuntu resolute: golang-gir-generator 2.2.0-2 Β· GPL-3.0-or-later
- Copyright 2020 Arun Kumar Pariyar <openarungeek@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms