codegen

package
v0.0.0-...-de618e6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name    string
	Content []byte
}

type GenerateConfig

type GenerateConfig struct {
	Package string
	FileExt string
}

type Generated

type Generated struct {
	Filename string
	Content  []byte
}

func Generate

func Generate(ctx context.Context, conn *pgx.Conn, config *GenerateConfig) ([]*Generated, error)

type GeneratedFiles

type GeneratedFiles struct {
	// contains filtered or unexported fields
}

func (*GeneratedFiles) Content

func (g *GeneratedFiles) Content(name string) ([]byte, error)

func (*GeneratedFiles) MustString

func (g *GeneratedFiles) MustString(name string) string

func (*GeneratedFiles) Pattern

func (g *GeneratedFiles) Pattern(pattern string) []*File

func (*GeneratedFiles) Reader

func (g *GeneratedFiles) Reader(name string) (io.Reader, error)

func (*GeneratedFiles) String

func (g *GeneratedFiles) String(name string) (string, error)

Jump to

Keyboard shortcuts

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