Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanWhitespaces ¶
CleanWhitespaces - Replaces character series of space \n, \t, \f, \r into a single space or newline (when the serie contained a \n or \r).
Types ¶
type Option ¶
type Option func(*options)
Option - Storage option setter.
func WithCacheCleanupInterval ¶
WithCacheCleanupInterval - Sets cache cleanup interval.
func WithCacheExpiration ¶
WithCacheExpiration - Sets cache expiration.
func WithWhitespaceRemoval ¶
WithWhitespaceRemoval - Enables total whitespaces removal (only repeated).
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage - Components storage.
func (*Storage) Component ¶
func (s *Storage) Component(name string) (c *components.Component, err error)
Component - Returns component by name.
Click to show internal directories.
Click to hide internal directories.