Versions in this module Expand all Collapse all v0 v0.3.4 Oct 17, 2025 v0.3.3 Oct 17, 2025 Changes in this version + const SignalWhenCleanup + const SignalWhenFirst + const SignalWhenLast + func EqVersion(v1, v2 string) bool + func FindGIRFiles(pkgs ...string) ([]string, error) + func GoNamespace(namespace *Namespace) string + func GoPackageName(girPkgName string) string + func ImportPath(root, pkgPath string) string + func MajorVersion(version string) string + func ParseVersionName(fullNamespace string) (name, majorVersion string) + func SearchNamespace(namespace *Namespace, f func(typ, ctyp string) bool) interface + func SplitGIRType(typ string) (namespace, typeName string) + func VersionedName(name, version string) string + func VersionedNamespace(namespace *Namespace) string + type Alias struct + CType string + Name string + Type Type + XMLName xml.Name + type Annotation struct + Name string + Value string + XMLName xml.Name + type AnyType struct + Array *Array + Type *Type + type Array struct + CType string + FixedSize int + Introspectable bool + Length *int + Name string + Type *Type + XMLName xml.Name + ZeroTerminated *bool + func (a Array) IsZeroTerminated() bool + type Bitfield struct + CType string + Functions []Function + GLibGetType string + GLibTypeName string + Members []Member + Name string + XMLName xml.Name + type Boxed struct + type CInclude struct + Name string + XMLName xml.Name + type CallableAttrs struct + CIdentifier string + MovedTo string + Name string + Parameters *Parameters + ReturnValue *ReturnValue + ShadowedBy string + Shadows string + Throws bool + type Callback struct + XMLName xml.Name + type Class struct + Abstract bool + CSymbolPrefix string + CType string + Constructors []Constructor + Fields []Field + Functions []Function + GLibGetType string + GLibTypeName string + GLibTypeStruct string + Implements []Implements + Methods []Method + Name string + Parent string + Signals []Signal + VirtualMethods []VirtualMethod + XMLName xml.Name + type Constant struct + CType string + Name string + Type Type + Value string + XMLName xml.Name + type Constructor struct + XMLName xml.Name + type Doc struct + Filename string + Line int + String string + XMLName xml.Name + type DocDeprecated struct + String string + XMLName xml.Name + type DocElements struct + Doc *Doc + DocDeprecated *DocDeprecated + SourcePosition *SourcePosition + type Enum struct + CType string + Functions []Function + GLibErrorDomain string + GLibGetType string + GLibTypeName string + Members []Member + Name string + XMLName xml.Name + type Field struct + Bits int + Callback *Callback + Doc *Doc + Name string + Private bool + Readable *bool + Writable bool + XMLName xml.Name + func (f Field) IsReadable() bool + type Function struct + XMLName xml.Name + type Implements struct + Name string + XMLName xml.Name + type Include struct + Name string + Version string + XMLName xml.Name + type InfoAttrs struct + Deprecated bool + DeprecatedVersion string + Introspectable *bool + Stability string + Version string + func (inf InfoAttrs) IsIntrospectable() bool + type InfoElements struct + Annotations []Annotation + type InstanceParameter struct + XMLName xml.Name + type Interface struct + CSymbolPrefix string + CType string + Functions []Function + GLibGetType string + GLibTypeName string + GLibTypeStruct string + Methods []Method + Name string + Prerequisites []Prerequisite + Signals []Signal + VirtualMethods []VirtualMethod + XMLName xml.Name + type Member struct + CIdentifier string + GLibNick string + Names []xml.Attr + Value string + XMLName xml.Name + func (m Member) GLibName() string + func (m Member) Name() string + type Method struct + XMLName xml.Name + type Namespace struct + Aliases []Alias + Annotations []Annotation + Bitfields []Bitfield + Boxeds []Boxed + CIdentifierPrefixes string + CSymbolPrefixes string + Callbacks []Callback + Classes []Class + Constants []Constant + Enums []Enum + Functions []Function + Interfaces []Interface + Name string + Prefix string + Records []Record + SharedLibrary string + Unions []Union + Version string + XMLName xml.Name + type NamespaceFindResult struct + Namespace *Namespace + Repository *PkgRepository + func (res *NamespaceFindResult) Eq(other *NamespaceFindResult) bool + func (res *NamespaceFindResult) Versioned() string + type Package struct + Name string + XMLName xml.Name + type Parameter struct + XMLName xml.Name + type ParameterAttrs struct + CallerAllocates bool + Closure *int + Destroy *int + Direction string + Doc *Doc + Name string + Nullable bool + Optional bool + Scope string + Skip bool + type Parameters struct + InstanceParameter *InstanceParameter + Parameters []Parameter + XMLName xml.Name + type PkgRepository struct + Path string + Pkg string + type Prerequisite struct + Name string + XMLName xml.Name + type Property struct + type Record struct + CSymbolPrefix string + CType string + Constructors []Constructor + Disguised bool + Fields []Field + Foreign bool + Functions []Function + GLibGetType string + GLibIsGTypeStructFor string + GLibTypeName string + Methods []Method + Name string + Properties []Property + Unions []Union + XMLName xml.Name + type Repositories []PkgRepository + func (repos *Repositories) Add(pkg string) error + func (repos *Repositories) AddSelected(pkg string, wantedNames []string) error + func (repos Repositories) FindFullType(fullType string) *TypeFindResult + func (repos Repositories) FindInclude(res *NamespaceFindResult, includes string) *NamespaceFindResult + func (repos Repositories) FindNamespace(name string) *NamespaceFindResult + func (repos Repositories) FindType(nsp *NamespaceFindResult, typ string) *TypeFindResult + func (repos Repositories) FromGIRFile(girFile string) *PkgRepository + func (repos Repositories) FromPkg(pkg string) []PkgRepository + type Repository struct + CIdentifierPrefixes string + CIncludes []CInclude + CSymbolPrefixes string + Includes []Include + Namespaces []Namespace + Packages []Package + Version string + XMLName xml.Name + func ParseRepository(file string) (*Repository, error) + func ParseRepositoryFromReader(r io.Reader) (*Repository, error) + type ReturnValue struct + AllowNone bool + Closure *int + Destroy *int + Introspectable bool + Nullable bool + Scope string + Skip bool + XMLName xml.Name + type Signal struct + Action bool + Detailed bool + Name string + NoHooks bool + NoRecurse bool + Parameters *Parameters + ReturnValue *ReturnValue + When SignalWhen + XMLName xml.Name + type SignalWhen string + type SourcePosition struct + Column int + Filename string + Line int + XMLName xml.Name + type TransferOwnership struct + TransferOwnership string + type Type struct + CType string + Introspectable *bool + Name string + Types []Type + XMLName xml.Name + func (typ Type) IsIntrospectable() bool + type TypeFindResult struct + Type interface{} + func (res *TypeFindResult) CType() string + func (res *TypeFindResult) IsIntrospectable() bool + func (res *TypeFindResult) MustFindGIR() string + func (res *TypeFindResult) Name() string + func (res *TypeFindResult) NamespacedType() string + func (res *TypeFindResult) SetCType(ctype string) + func (res *TypeFindResult) SetName(name string) + func (res *TypeFindResult) VersionedNamespaceType() string + type Union struct + CSymbolPrefix string + CType string + Constructors []Constructor + Fields []Field + Functions []Function + GLibGetType string + GLibTypeName string + Methods []Method + Name string + Records []Record + XMLName xml.Name + type VarArgs struct + XMLName xml.Name + type VirtualMethod struct + Invoker string + XMLName xml.Name