pkgpart

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImportSetUnion

func GetImportSetUnion(fns []PkgPart) []impt.Impt

takes multiple Fns and returns a list of all Impts used without duplicates

func GroupDuplicatesFns

func GroupDuplicatesFns(fns []PkgPart) map[string][]PkgPart

combines funcs that have identical names into groups

func WriteFns

func WriteFns(outputDir, packageName string, fns []PkgPart) error

func WritePkgParts

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

Types

type PkgPart

type PkgPart struct {
	// func/struct/interface/var/const
	Type string
	// name for funcs - blank for others
	Name string
	// the content of this part of the package
	Body string
	// imports used by this package part
	Imports []impt.Impt
}

Jump to

Keyboard shortcuts

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