qa

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptionJson         = `json:"小驼峰"`
	OptionDb           = `db:"原生名字"`
	OptionXorm         = `xorm:"原生名字"`
	OptionGorm         = `gorm:"原生名字"`
	OptionValid        = `valid:"小驼峰"`
	OptionPlaceholder1 = `###:"小驼峰"`
	OptionPlaceholder2 = `@@@:"原生名字"`
)
View Source
const (
	RadioSingle = "写入到单个文件"
	RadioMutil  = "写入到多个文件"
	RadioClip   = "写入到剪贴板"
)
View Source
const Custom = "自定义"

Variables

This section is empty.

Functions

func NewQuestions

func NewQuestions(flag int) []*survey.Question

func SaveConf

func SaveConf(answer *Answer)

func UseConfig

func UseConfig(options []string) []*survey.Question

Types

type Answer

type Answer struct {
	Conf   string
	Host   string
	User   string
	Pass   string
	Port   string
	DB     string
	Table  string
	Tags   []string
	OutWay string
	Save   bool
}

用户交互

func (*Answer) ReadConf

func (self *Answer) ReadConf()

func (*Answer) SaveConf

func (self *Answer) SaveConf()

Jump to

Keyboard shortcuts

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