util

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("file not found")

Functions

func FileDir added in v0.5.0

func FileDir(from, file string) (string, error)

func MigrationName added in v0.5.0

func MigrationName(args []string) string

Types

type Config added in v0.5.0

type Config struct {
	Root      string   `yaml:"-"`
	Module    string   `yaml:"module"`
	Model     *Package `yaml:"model"`
	Migration *Package `yaml:"migration"`
}

func LoadConfig added in v0.5.0

func LoadConfig(from string) (*Config, error)

type Package added in v0.5.0

type Package struct {
	Dir    string `yaml:"dir"`
	Pkg    string `yaml:"package"`
	Import string `yaml:"import"`
}

type PackageInfo

type PackageInfo struct {
	RootPackage  string
	SpicePackage string
}

func PkgInfo

func PkgInfo(goRoot, spiceRoot string) (*PackageInfo, error)

Jump to

Keyboard shortcuts

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