files

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Encoding      transform.Encoding
	TypeName      string
	Keys          map[ast.Node]string
	ConfigContent any
	Cfg           ast.Expr        // config type, needed to be placed in a TypeSpec
	Named         []*ast.GenDecl  // Named types
	Isolated      *ast.GenDecl    // Product of organization process
	Iterators     []*ast.FuncDecl // .Range() methods
	Imports       []string        // package paths
}

func ReadConfigFile added in v1.4.0

func ReadConfigFile(src string, typename string) (*File, error)

func (*File) Write

func (f *File) Write(dst, pkgname string) error

Jump to

Keyboard shortcuts

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