Documentation
¶
Overview ¶
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Copyright © 2021 Mirco Veltri <github@mircoveltri.me>
Use of this source code is governed by Apache 2.0 license that can be found in the LICENSE file.
Index ¶
- func CheckIfError(err error)
- func CurrentYear() string
- func GetAvailableNPMClientList() []string
- func GitClone(sveltinTemplate *config.AppTemplate, inpath string)
- func PlusOne(x int) int
- func Sum(x int, y int) int
- func ToLibFilename(txt string) string
- func ToMDFile(text string) string
- func ToTitle(txt string) string
- func ToURL(txt string) string
- func Today() string
- func Trimmed(txt string) string
- type LoggerWriter
- type PrinterBuffer
- type PrinterContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentYear ¶
func CurrentYear() string
func GetAvailableNPMClientList ¶ added in v0.2.4
func GetAvailableNPMClientList() []string
func GitClone ¶
func GitClone(sveltinTemplate *config.AppTemplate, inpath string)
func ToLibFilename ¶
Types ¶
type LoggerWriter ¶
type LoggerWriter struct {
// contains filtered or unexported fields
}
func NewLoggerWriter ¶
func NewLoggerWriter() LoggerWriter
func (LoggerWriter) AppendItem ¶
func (w LoggerWriter) AppendItem(message string)
func (LoggerWriter) Indent ¶
func (w LoggerWriter) Indent()
func (LoggerWriter) Render ¶
func (w LoggerWriter) Render() string
func (LoggerWriter) Reset ¶
func (w LoggerWriter) Reset()
func (LoggerWriter) UnIndent ¶
func (w LoggerWriter) UnIndent()
type PrinterBuffer ¶
type PrinterBuffer struct {
// contains filtered or unexported fields
}
func PrettyPrinter ¶
func PrettyPrinter(pc *PrinterContent) PrinterBuffer
func (PrinterBuffer) Print ¶
func (pb PrinterBuffer) Print()
func (PrinterBuffer) ToString ¶
func (pb PrinterBuffer) ToString() string
type PrinterContent ¶
type PrinterContent struct { Title string // contains filtered or unexported fields }
func (*PrinterContent) SetContent ¶
func (p *PrinterContent) SetContent(content string)
Click to show internal directories.
Click to hide internal directories.