language

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackageForFolder added in v0.37.0

func PackageForFolder(folder string) (string, string, error)

Types

type Importer

type Importer interface {
	Import(...string) string
	ImportList(list []string) string
	ToList() []string
}

type Language

type Language interface {
	Importer() Importer
	IsTest(templateName string) bool
	OutputFileName(schema, tableName string, isTest bool) string
	Write(
		imps Importer,
		pkgName, folder string,
		contents io.Reader, isTest bool,
		destination io.Writer,
	) error
	Disclaimer() string
}

type Languages

type Languages struct {
	GeneratorName           string
	SeparatePackageForTests bool
}

func (Languages) GetOutputLanguage

func (o Languages) GetOutputLanguage(ext string) Language

Jump to

Keyboard shortcuts

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