code_generation

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGeneratedFileContents

func GetGeneratedFileContents(
	value any,
	packageName string,
	by string,
	variableName string,
	importSet ImportSet,
) ([]byte, error)

func GetGeneratedFilename

func GetGeneratedFilename() string

func MakeFileContent

func MakeFileContent(
	code string,
	packageName string,
	by string,
	importSet ImportSet,
) ([]byte, error)

Types

type ImportSet

type ImportSet map[string]struct{}

func GenerateLiteral

func GenerateLiteral(value reflect.Value, importSet ImportSet) (string, ImportSet, error)

func (ImportSet) Generate

func (importSet ImportSet) Generate() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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