gen

package module
v0.0.0-...-492d743 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: BSD-3-Clause-Clear Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewLine = func() string {
	if runtime.GOOS == "windows" {
		return "\r\n"
	}
	return "\n"
}()

Functions

func GenerateCode

func GenerateCode(filename string, gen Generator) string

func GenerateQueryBuilder

func GenerateQueryBuilder(gen Generator, inputFilepath string, outputFilepath string) error

func WriteFile

func WriteFile(filename string, code string) error

Types

type Generator

type Generator interface {
	String() string
	// contains filtered or unexported methods
}

type MongoGenerator

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

func NewMongoGenerator

func NewMongoGenerator() *MongoGenerator

type SqlGenerator

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

func NewSqlGenerator

func NewSqlGenerator() *SqlGenerator

Jump to

Keyboard shortcuts

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