internal

package
v0.0.0-...-c071abc Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InflectDash

func InflectDash(s string) string

InflectDash takes a word and produces a dasherized version of it (separate words with `-`)

func InflectPascal

func InflectPascal(s string) string

InflectPascal takes a word and produce a pascal-cased version of it.

Example: go_lang -> GoLanguage

func InflectSnake

func InflectSnake(s string) string

InflectSnake takes a word and produces a snake-cased version of it (separate words with `_`)

Example: GoLanguage -> go_language

func InflectTitle

func InflectTitle(s string) string

InflectTitle capitalize words and put spaces between them.

Types

type Logger

type Logger interface {
	Warn(string)
	Warnp(Pos, string)
	Fatal(error)
	Fatalp(Pos, error)
}

func NewLogger

func NewLogger(silent bool) Logger

type Pos

type Pos struct {
	Byte int `json:"byte_no"`
	Line int `json:"line_no"`
	Col  int `json:"col_no"`
}

func (Pos) String

func (p Pos) String() string

Jump to

Keyboard shortcuts

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