Documentation ¶
Index ¶
- type Snippet
- type Snippets
- func (s *Snippets) Comment(comment string) *Snippets
- func (s *Snippets) Escape(fx func(string) string) *Snippets
- func (s *Snippets) GetSnippet(name string) Snippet
- func (s *Snippets) Load(scanner *bufio.Scanner) *Snippets
- func (s *Snippets) LoadFile(name string) *Snippets
- func (s *Snippets) LoadString(code string, fxEscape func(string) string) *Snippets
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snippet ¶
type Snippets ¶
type Snippets struct {
// contains filtered or unexported fields
}
func NewSnippetStorage ¶
func NewSnippetStorage() *Snippets
func (*Snippets) GetSnippet ¶
Click to show internal directories.
Click to hide internal directories.