yoyo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Paths  Paths
	Schema schema.Database
}

Config is a struct which represents the yoyo.yml file

func LoadConfig

func LoadConfig() (yml Config, err error)

LoadConfig searches for a yoyo.yml file, unmarshals it, and returns the unmarshaled struct. It travels toward the filesystem root, searching for yoyo.yml in each directory until it finds the file, or arrives at either / or <DriveLetter>:\

type Paths

type Paths struct {
	Migrations   string
	Repositories string // Soon...
	Models       string // Soon...
}

Paths defines the locations that Migrations and generated Repositories code will be created in

Jump to

Keyboard shortcuts

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