models

package
v0.0.0-...-d57313c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Confirm

type Confirm struct {
	Title        string
	DefaultToYes bool
}

func (Confirm) Ask

func (c Confirm) Ask() (answer string, err error)

type DocConfig

type DocConfig struct {
	Project string `json:"project"`
	Server  string `json:"server"`
	Account string `json:"account"`
	Token   string `json:"token"`
}

type DocServerConfig

type DocServerConfig struct {
	Port   uint64 `json:"port"`
	PassWD string `json:"password"`
}

type PublishSetting

type PublishSetting struct {
	Server  string
	Version string
	Path    string
	Project string
	DocType string
}

func (PublishSetting) ToURL

func (setting PublishSetting) ToURL() (string, error)

type QA

type QA interface {
	Ask() (answer string, err error)
}

type Question

type Question struct {
	Title      string
	DefaultVal string
}

func (Question) Ask

func (q Question) Ask() (answer string, err error)

type Questions

type Questions struct {
	Items []QA
}

func (Questions) Ask

func (qs Questions) Ask() (answers []string, err error)

Jump to

Keyboard shortcuts

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