value

package
v0.0.0-...-d4e1695 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string
	Type string
}

func NewField

func NewField(nameAndType string) Field

func NewFields

func NewFields(nameAndTypes string) (fs []Field)

func (Field) ToStructField

func (f Field) ToStructField(t Layer) jen.Code

type Filepath

type Filepath string

func NewFilepath

func NewFilepath(path, name, suffix string) Filepath

func (Filepath) String

func (p Filepath) String() string

type Layer

type Layer string
const (
	LayerEntity Layer = "entity"
	LayerModel  Layer = "model"
	LayerView   Layer = "view"
)

func (Layer) String

func (t Layer) String() string

type Package

type Package string
const (
	PackageOS      Package = "os"
	PackageTesting Package = "testing"
	PackageFmt     Package = "fmt"

	PackageGorm    Package = "gorm.io/gorm"
	PackageAssert  Package = "github.com/stretchr/testify/assert"
	PackageSqlfile Package = "github.com/tanimutomo/sqlfile"
)
var (
	PackageEntity     Package = ""
	PackageModel      Package = ""
	PackageView       Package = ""
	PackageRepository Package = ""
	PackageDao        Package = ""
	PackageError      Package = ""
	PackageDatabase   Package = ""
)

func NewLocalPackage

func NewLocalPackage(root, path string) Package

func (Package) Name

func (p Package) Name() string

func (Package) Path

func (p Package) Path() string

Jump to

Keyboard shortcuts

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