Documentation
¶
Overview ¶
Package pkginfo extracts information from a gx package folder. This includes package path, dependencies, etc.
Index ¶
- func BuildPackageInfo() (goembed.PackageInfo, error)
- type PkgInfo
- func (inf PkgInfo) Dependencies() []string
- func (inf PkgInfo) Embed() []string
- func (inf PkgInfo) GXPackage() string
- func (inf PkgInfo) GXPackageName() string
- func (inf PkgInfo) GXPackagePath() string
- func (inf PkgInfo) GoPackageName() string
- func (inf PkgInfo) SourceFiles() []string
- func (inf PkgInfo) TargetFile() string
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 (PkgInfo) Dependencies ¶
Dependencies returns the list of dependencies of the GX package.
func (PkgInfo) GXPackageName ¶ added in v0.6.0
GXPackageName is the name of the GX package.
func (PkgInfo) GXPackagePath ¶ added in v0.6.0
GXPackagePath is the name of the GX package.
func (PkgInfo) GoPackageName ¶
GoPackageName returns the Go package name.
func (PkgInfo) SourceFiles ¶
SourceFiles returns the list of GX source files for the package.
func (PkgInfo) TargetFile ¶ added in v0.6.0
TargetFile returns the folder where to generate the Go source file packaging the GX source files.
Click to show internal directories.
Click to hide internal directories.