pkg

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfigYaml

func ReadConfigYaml(src string) (*ast.TypeSpec, error)

func ReadTypes

func ReadTypes(path string) ([]*ast.TypeSpec, error)

func Substitute

func Substitute(produced *ast.TypeSpec, existing []*ast.TypeSpec)

func Transform added in v1.1.0

func Transform(v reflect.Value) ast.Expr

reconstructs a reflect-value's type in ast.TypeSpec. limited with types used by YAML decoder.

func WriteConfigGo

func WriteConfigGo(dst string, cfg *ast.TypeSpec, pkgname string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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