pkginfo

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package pkginfo extracts information from a gx package folder. This includes package path, dependencies, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPackageInfo added in v0.6.0

func BuildPackageInfo() (goembed.PackageInfo, error)

BuildPackageInfo builds information about a package.

Types

type PkgInfo

type PkgInfo struct {
	// contains filtered or unexported fields
}

PkgInfo constructs information from a GX package path present in the Go module.

func Load

func Load(mod *module.Module, gxPackage string) (*PkgInfo, error)

Load package information from a GX path in the module.

func (PkgInfo) Dependencies

func (inf PkgInfo) Dependencies() []string

Dependencies returns the list of dependencies of the GX package.

func (PkgInfo) Embed added in v0.6.0

func (inf PkgInfo) Embed() []string

Embed returns the list of file to embed.

func (PkgInfo) GXPackage added in v0.6.0

func (inf PkgInfo) GXPackage() string

GXPackage is the full path of the GX package.

func (PkgInfo) GXPackageName added in v0.6.0

func (inf PkgInfo) GXPackageName() string

GXPackageName is the name of the GX package.

func (PkgInfo) GXPackagePath added in v0.6.0

func (inf PkgInfo) GXPackagePath() string

GXPackagePath is the name of the GX package.

func (PkgInfo) GoPackageName

func (inf PkgInfo) GoPackageName() string

GoPackageName returns the Go package name.

func (PkgInfo) SourceFiles

func (inf PkgInfo) SourceFiles() []string

SourceFiles returns the list of GX source files for the package.

func (PkgInfo) TargetFile added in v0.6.0

func (inf PkgInfo) TargetFile() string

TargetFile returns the folder where to generate the Go source file packaging the GX source files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL