codegen

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 6 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 MapToGoCode added in v0.5.9

func MapToGoCode(v reflect.Value) (string, error)

func ParameterDefinitionToDict

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

func SliceToGoCode added in v0.5.9

func SliceToGoCode(v reflect.Value) (string, error)

func StructToGoCode added in v0.5.9

func StructToGoCode(v reflect.Value) (string, error)

func StructTypeToJen

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

func StructValueToJen

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

func ToGoCode added in v0.5.9

func ToGoCode(v interface{}) (string, error)

func TypeToJen

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

TypeToJen converts a reflect.Type to jen.Code

func ValueToGoCode added in v0.5.9

func ValueToGoCode(v reflect.Value) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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