helper

package
v0.0.0-...-2cadf5c Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeprecationComment = "// Deprecated: Do not use."
)

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(path string) (*os.File, error)

func EnsureDir

func EnsureDir(path string) error

func PathExists

func PathExists(path string) (bool, error)

func Title

func Title(s string) string

func ToCamelCase

func ToCamelCase(s string) string

func ToSnakeCase

func ToSnakeCase(input string) string

func UnTitle

func UnTitle(s string) string

Types

type TmplRenderer

type TmplRenderer struct {
	// contains filtered or unexported fields
}

func NewTmplRenderer

func NewTmplRenderer(name string) *TmplRenderer

func (*TmplRenderer) Data

func (r *TmplRenderer) Data(data interface{}) *TmplRenderer

func (*TmplRenderer) RenderTmpl

func (r *TmplRenderer) RenderTmpl() string

func (*TmplRenderer) Text

func (r *TmplRenderer) Text(text string) *TmplRenderer

Jump to

Keyboard shortcuts

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