generate

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Air

func Air(options AirOptions) (err error)

func Bun

func Bun(options BunOptions) (err error)

func Copy

func Copy(options CopyOptions) (err error)

func Core

func Core(options CoreOptions) (err error)

func Database

func Database(options DatabaseOptions) (err error)

func Download

func Download(options DownloadOptions) (ins Install, evc Evict, err error)

func Forms

func Forms(options FormsOptions) error
func Links(options LinksOptions) error

func Parse

func Parse(source string, build Build) (text string, err error)

func Project

func Project(options ProjectOptions) (err error)

func Queries

func Queries(options QueriesOptions) (err error)

func Session

func Session(options SessionOptions) (err error)

func Sqlc

func Sqlc(options SqlcOptions) (err error)

Types

type AirOptions

type AirOptions struct {
	Air      string
	Auto     bool
	Platform platform.Platform
}

type Block

type Block struct {
	Mods []Mod
	Line *string
}

type Build

type Build func(block Block) error

type BunOptions

type BunOptions struct {
	Bun      string
	Auto     bool
	Platform platform.Platform
}

type CopyOptions

type CopyOptions struct {
	Ignore []string
	From   string
	To     string
	Auto   bool
	Efs    embed.FS
}

type CoreOptions

type CoreOptions struct {
	App  string
	Auto bool
	Efs  embed.FS
}

type DatabaseOptions

type DatabaseOptions struct {
	Efs      embed.FS
	Generate string
	Auto     bool
	Go       string
	Sqlc     string
	Platform platform.Platform
}

type DownloadOptions

type DownloadOptions struct {
	Url  string
	Auto bool
}

type EmbeddedZipOptions

type EmbeddedZipOptions struct {
	Auto     bool
	FileName string
	Efs      embed.FS
}

type Evict

type Evict func() error

type FormsOptions

type FormsOptions struct {
	App  string
	Auto bool
	Efs  embed.FS
}

type Install

type Install func(to string) (bool, error)

type LinksOptions

type LinksOptions struct {
	App  string
	Auto bool
	Efs  embed.FS
}

type Mod

type Mod struct {
	Pattern     string
	Replacement string
}

type ProjectOptions

type ProjectOptions struct {
	Auto bool
	Name string
	Efs  embed.FS
}

type QueriesOptions

type QueriesOptions struct {
	Auto     bool
	Sqlc     string
	Platform platform.Platform
	SqlcYaml string
}

type SessionOptions

type SessionOptions struct {
	Auto bool
	Efs  embed.FS
}

type SqlcOptions

type SqlcOptions struct {
	Sqlc     string
	Auto     bool
	Platform platform.Platform
}

type State

type State uint64
const DoneReadingOriginalString State = 101
const DoneReadingReplacementString State = 201
const EscapingOriginal State = 98
const EscapingReplacement State = 99
const ExpectingReplacementString State = 900
const Invalid State = 1000
const ReadingOriginalString State = 100
const ReadingReplacementString State = 200
const Start State = 0

type Submit

type Submit func(char string)

Jump to

Keyboard shortcuts

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