Documentation ¶
Index ¶
- Constants
- func CreateMarkdownHeading(text string, level int) string
- func CreateMarkdownHeadings(text []string, level int) string
- func CreateMarkdownList(items []string) string
- func GetInput(question string) string
- func RequestDecisionInput(question string, preferTrue bool) bool
- func RequestValueInput(requestedValue string, defaultValue interface{}) string
- func RequestValueListInput(requestedValue string) []string
- type Readme
Constants ¶
View Source
const README_TEMPLATE = `` /* 524-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func CreateMarkdownHeading ¶
func CreateMarkdownHeadings ¶
func CreateMarkdownList ¶
func RequestDecisionInput ¶
print the question and wait for a "y/n" answer from the user
func RequestValueInput ¶
ask for the requestedValue and return either the user-input or the default value
func RequestValueListInput ¶
ask for the requestedValue and gather the list items from the input
Types ¶
type Readme ¶
type Readme struct { Title string `json:"title"` Description string `json:"description"` RepositoryURL string `json:"repository-url"` Headings []string `json:"headings"` Requirements []string `json:"requirements"` ShowContributors bool `json:"show-contributors"` ShowShields bool `json:"show-shields"` Watermark bool `json:"watermark"` }
Click to show internal directories.
Click to hide internal directories.