Documentation ¶
Overview ¶
Package titlers expose utilities to "title-ize" headings.
A Titler knows how to transform a string using the Title(string) string method.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaseTitler ¶
CaseTitler returns a titler based on golang.org/x/text/cases.Caser.
func NewCaseTitler ¶
func NewCaseTitler(tag language.Tag, opts ...cases.Option) *CaseTitler
func (*CaseTitler) Title ¶
func (t *CaseTitler) Title(name string) string
type DefaultTitler ¶
type DefaultTitler struct { }
DefaultTitler formats headers and footers.
It replaces _ , . and spaces.
func NewDefault ¶
func NewDefault() *DefaultTitler
func (*DefaultTitler) Title ¶
func (t *DefaultTitler) Title(name string) string
Click to show internal directories.
Click to hide internal directories.