codegen

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const ClaySqlPath = "github.com/go-go-golems/clay/pkg/sql"
View Source
const GlazedCommandsPath = "github.com/go-go-golems/glazed/pkg/cmds"
View Source
const GlazedMiddlewaresPath = "github.com/go-go-golems/glazed/pkg/middlewares"
View Source
const GlazedParametersPath = "github.com/go-go-golems/glazed/pkg/cmds/parameters"
View Source
const MapsHelpersPath = "github.com/go-go-golems/glazed/pkg/helpers/maps"

Variables

This section is empty.

Functions

func FlagTypeToGoType

func FlagTypeToGoType(s *jen.Statement, parameterType parameters.ParameterType) *jen.Statement

func FlagValueToJen

func FlagValueToJen(p *parameters.ParameterDefinition) (jen.Code, error)

func LiteralToJen

func LiteralToJen(v reflect.Value) (jen.Code, error)

func ParameterDefinitionToDict

func ParameterDefinitionToDict(p *parameters.ParameterDefinition) (jen.Code, error)

func StructTypeToJen

func StructTypeToJen(typ reflect.Type) (jen.Code, error)

func StructValueToJen

func StructValueToJen(structName string, s interface{}) (jen.Code, error)

func TypeToJen

func TypeToJen(t reflect.Type) (jen.Code, error)

TypeToJen converts a reflect.Type to jen.Code

Types

This section is empty.

Jump to

Keyboard shortcuts

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