pkginfo

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 8 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

This section is empty.

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, importPath string) (*PkgInfo, error)

Load package information from a GX path in the module.

func (PkgInfo) Dependencies

func (inf PkgInfo) Dependencies() ([]string, error)

Dependencies returns the list of dependencies 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, error)

SourceFiles returns the list of all the GX source files.

func (PkgInfo) TargetFileName

func (inf PkgInfo) TargetFileName() string

TargetFileName returns the file name to generate for the Go module.

func (PkgInfo) TargetFolder

func (inf PkgInfo) TargetFolder() string

TargetFolder 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