style

package
v1.1.100 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(s string, cs ChainStyle) []string

func GoogleChain

func GoogleChain(s string) []string

func Standardize

func Standardize(s string, sep SeparatorType) string

func UnixChain

func UnixChain(s string) []string

Types

type ChainStyle

type ChainStyle struct {
	ChainSeperator SeparatorType
	WordSeparator  SeparatorType
}

func NewChainStyle

func NewChainStyle(chainSeparator, wordSeparator string) *ChainStyle

func (ChainStyle) Chain

func (cs ChainStyle) Chain(s string) []string

type SeparatorType

type SeparatorType = string
const (
	SeparatorLazy         SeparatorType = "\u0000"
	SeparatorNone         SeparatorType = ""
	SeparatorSpace        SeparatorType = " "
	SeparatorSlash        SeparatorType = "/"
	SeparatorBackslash    SeparatorType = "\\"
	SeparatorComma        SeparatorType = ","
	SeparatorCaret        SeparatorType = "^"
	SeparatorAmpersand    SeparatorType = "&"
	SeparatorAsterisk     SeparatorType = "*"
	SeparatorPeriod       SeparatorType = "."
	SeparatorColon        SeparatorType = ":"
	SeparatorSemicolon    SeparatorType = ";"
	SeparatorQuestion     SeparatorType = "?"
	SeparatorUnderscore   SeparatorType = "_"
	SeparatorVerticalBar  SeparatorType = "|"
	SeparatorEqual        SeparatorType = "="
	SeparatorPlus         SeparatorType = "+"
	SeparatorMinus        SeparatorType = "-"
	SeparatorHyphen       SeparatorType = "-"
	SeparatorQuote        SeparatorType = "'"
	SeparatorDoubleQuote  SeparatorType = "\""
	SeparatorLess         SeparatorType = "<"
	SeparatorGreater      SeparatorType = ">"
	SeparatorBackQuote    SeparatorType = "`"
	SeparatorTilde        SeparatorType = "~"
	SeparatorExclaim      SeparatorType = "!"
	SeparatorAt           SeparatorType = "@"
	SeparatorNumber       SeparatorType = "#"
	SeparatorDoller       SeparatorType = "$"
	SeparatorPercent      SeparatorType = "%"
	SeparatorParenLeft    SeparatorType = "("
	SeparatorParenRight   SeparatorType = ")"
	SeparatorBracketLeft  SeparatorType = "["
	SeparatorBracketRight SeparatorType = "]"
	SeparatorBraceLeft    SeparatorType = "{"
	SeparatorBraceRight   SeparatorType = "}"
)

Jump to

Keyboard shortcuts

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