Documentation ¶
Index ¶
- Constants
- Variables
- func Amsyong(msg interface{})
- func BackupConfig()
- func CopyDir(src string, dst string) error
- func Curdir() string
- func Execute(dir string, name string, arg ...string)
- func GetInput(message string, scanner bufio.Scanner, required bool) (input string)
- func IsDirExist(path string) bool
- func Log(msg interface{})
- func MoveFile(oldLocation string, newLocation string) (err error)
- func RestoreConfig()
- type Module
- type Project
- type Struct
- type Structure
Constants ¶
View Source
const ArcticVersion string = "V1.0.6"
ArcticVersion const
View Source
const CfgFileName string = ".arctic"
CfgFileName const
View Source
const TempRepo string = "https://github.com/mfahrul/arctic-tpl"
TempRepo const
Variables ¶
View Source
var CfgPath string
CfgPath var
View Source
var TemplateDir string
TemplateDir const
View Source
var WorkDir string
WorkDir var
Functions ¶
Types ¶
type Module ¶
type Module struct { Name string `yaml:"name"` Model Struct `yaml:"model"` AddStructs []Struct `yaml:"addstructs"` }
Module struct
type Project ¶
type Project struct { Projectpath string `yaml:"projectpath"` Projectname string `yaml:"projectname"` Dbname string `yaml:"dbname"` Dbusername string `yaml:"dbusername"` Dbpassword string `yaml:"dbpassword"` Dbhost string `yaml:"dbhost"` Dbport string `yaml:"dbport"` Modules []Module `yaml:"modules"` ModuleToParse Module `yaml:"-"` }
Project struct
Click to show internal directories.
Click to hide internal directories.