pkg

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package added in v0.0.17

type Package struct {
	// Package name taken from first file
	Name string
	// path that was passed as argument
	FilePath string
	// either all go files in dir passed or single length if file passed
	Files []gofile.GoFile
	// all imports used in package
	Imports []impt.Impt
	// all funcs in package
	Fns []pkgpart.PkgPart
	// all var and const declarations in package
	Vars []pkgpart.PkgPart
	// all things declared with "type" in package
	TypeSpecs []pkgpart.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) WriteComments added in v0.0.30

func (p Package) WriteComments() error

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