Documentation ¶
Overview ¶
Package collections contains common Hugo functionality related to collection handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
func Append(to interface{}, from ...interface{}) (interface{}, error)
Append appends from to a slice to and returns the resulting slice. If length of from is one and the only element is a slice of same type as to, it will be appended.
func Slice ¶
func Slice(args ...interface{}) interface{}
Slice returns a slice of all passed arguments.
func StringSliceToInterfaceSlice ¶ added in v0.91.0
func StringSliceToInterfaceSlice(ss []string) []interface{}
StringSliceToInterfaceSlice converts ss to []interface{}.
Types ¶
type Grouper ¶
type Grouper interface {
Group(key interface{}, items interface{}) (interface{}, error)
}
Grouper defines a very generic way to group items by a given key.
Click to show internal directories.
Click to hide internal directories.