codegen

package
v0.1.79 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 6 Imported by: 0

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"
View Source
const SqletonCmdsPath = "github.com/go-go-golems/sqleton/pkg/cmds"

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

type SqlCommandCodeGenerator

type SqlCommandCodeGenerator struct {
	PackageName string
}

func (*SqlCommandCodeGenerator) GenerateCommandCode

func (s *SqlCommandCodeGenerator) GenerateCommandCode(cmd *cmds.SqlCommand) (*jen.File, error)

Jump to

Keyboard shortcuts

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