pkg

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WritePkgParts added in v0.0.17

func WritePkgParts(outputFilePath, packageName string, parts []gofile.PkgPart) error

Types

type Package added in v0.0.17

type Package struct {
	// Package name taken from first file
	Name string
	// path to file that was read
	FilePath string
	// data about either the file passed or all go files in dir passed
	Files []gofile.GoFile
	// all imports used by this package
	Imports []impt.Impt
	// each func will get its own file
	Fns []gofile.PkgPart
	// list of the body of all var/const declarations
	Vars []gofile.PkgPart
	// things declared with "type"
	TypeSpecs []gofile.PkgPart
}

func NewPackage added in v0.0.17

func NewPackage(filePath string) (Package, error)

func (Package) GetOutputDir added in v0.0.17

func (p Package) GetOutputDir() string

func (Package) String added in v0.0.17

func (p Package) String() string

func (Package) WriteOutput added in v0.0.17

func (p Package) WriteOutput() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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