paths

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Admin   = string(os.PathSeparator) + "admin"
	API     = string(os.PathSeparator) + "api"
	Storage = string(os.PathSeparator) + "storage"
	Themes  = string(os.PathSeparator) + "themes"
	Web     = API + string(os.PathSeparator) + "www"
	Uploads = Storage + string(os.PathSeparator) + "uploads"
	Forms   = Storage + string(os.PathSeparator) + "forms"
	Bin     = string(os.PathSeparator) + "bin"
)

Variables

This section is empty.

Functions

func BaseCheck

func BaseCheck() error

BaseCheck

TODO: Needs to be removed. Check the environment to see if it is passable by seeing if the .env file, the admin folder, and the storage folder exists.

Types

type Paths

type Paths struct {
	Base    string
	Admin   string
	API     string
	Uploads string
	Storage string
	Themes  string
	Web     string
	Forms   string
	Bin     string
}

Paths represent the struct of paths for use with the / application.

func Get

func Get() Paths

Get

Retrieves relevant paths for the application.

Jump to

Keyboard shortcuts

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