app

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

func Amsyong

func Amsyong(msg interface{})

Amsyong keluar dari program

func BackupConfig added in v1.0.6

func BackupConfig()

BackupConfig func

func CopyDir

func CopyDir(src string, dst string) error

CopyDir copies a whole directory recursively

func Curdir

func Curdir() string

Curdir func

func Execute

func Execute(dir string, name string, arg ...string)

Execute func

func GetInput

func GetInput(message string, scanner bufio.Scanner, required bool) (input string)

GetInput func

func IsDirExist

func IsDirExist(path string) bool

IsDirExist func

func Log

func Log(msg interface{})

Log func

func MoveFile

func MoveFile(oldLocation string, newLocation string) (err error)

MoveFile func

func RestoreConfig added in v1.0.6

func RestoreConfig()

RestoreConfig func

Types

type Module

type Module struct {
	Name       string   `yaml:"name"`
	Model      Struct   `yaml:"model"`
	AddStructs []Struct `yaml:"addstructs"`
}

Module struct

func Modules

func Modules() *Module

Modules func

func (*Module) CopyModule

func (m *Module) CopyModule()

CopyModule func

func (*Module) New

func (m *Module) New(project *Project) *Module

New Func

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

func Projects

func Projects() *Project

Projects func

func (*Project) New

func (p *Project) New()

New func

func (*Project) ParseProject

func (p *Project) ParseProject()

ParseProject func

func (*Project) Save

func (p *Project) Save()

Save func

type Struct

type Struct struct {
	Name       string      `yaml:"name"`
	Structures []Structure `yaml:"structures"`
}

Struct struct

func Structs

func Structs() *Struct

Structs func

func (*Struct) New

func (s *Struct) New(module *Module) *Struct

New struct func

type Structure

type Structure struct {
	Name string `yaml:"name"`
	Type string `yaml:"type"`
}

Structure struct

Jump to

Keyboard shortcuts

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