Documentation ¶
Index ¶
- Constants
- Variables
- func Context(opts interface{}) *plush.Context
- func New(opts *Options) (*genny.Generator, error)
- type Helpers
- type Options
- type StringMap
- func (m *StringMap) Delete(key string)
- func (m *StringMap) Keys() []string
- func (m *StringMap) Load(key string) (string, bool)
- func (m *StringMap) LoadOrStore(key string, value string) (string, bool)
- func (m *StringMap) Range(f func(key string, value string) bool)
- func (m *StringMap) Store(key string, value string)
- type Tool
- type Writer
- func (w Writer) Error(s string)
- func (w Writer) Header(s string)
- func (w Writer) Render(s string, ctx *plush.Context) error
- func (w Writer) RenderE(err error) error
- func (w Writer) Success(s string)
- func (w Writer) Tabs(lines [][]string) error
- func (w Writer) Warning(s string)
- func (w Writer) WriteString(s string) error
Constants ¶
View Source
const ( SUCCESS = "\u2713" ERROR = "\u2718" WARNING = "\u26A0" )
Variables ¶
View Source
var BuffaloMinimums = []string{">=0.14.10"}
View Source
var CockroachMinimums = []string{">=1.1.1", ">=2.0.x"}
View Source
var GoMinimums = []string{">=1.13"}
View Source
var MySQLMinimums = []string{">=3.5"}
View Source
var NodeMinimums = []string{">=1.11"}
View Source
var NpmMinimums = []string{">=6.0.0", ">=7.0.0"}
View Source
var PGMinimums = []string{">=9.3", ">=10.0", ">=11.0"}
View Source
var SQLiteMinimums = []string{">=3.0"}
View Source
var YarnMinimums = []string{">=1.12"}
Functions ¶
Types ¶
type Options ¶
type StringMap ¶
type StringMap struct {
// contains filtered or unexported fields
}
StringMap wraps sync.Map and uses the following types: key: string value: string
func (*StringMap) Load ¶
Load the key from the map. Returns string or bool. A false return indicates either the key was not found or the value is not of type string
func (*StringMap) LoadOrStore ¶
LoadOrStore will return an existing key or store the value if not already in the map
type Tool ¶
type Writer ¶
func (Writer) WriteString ¶
Click to show internal directories.
Click to hide internal directories.