files

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Yaml = EncodingLang(iota)
	Json
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingLang added in v1.3.6

type EncodingLang int

type File

type File struct {
	Lang          EncodingLang
	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) (*File, error)

func (*File) Write

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

Jump to

Keyboard shortcuts

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