package types

import "github.com/gohugoio/hugo/common/types"

Package types contains types shared between packages in Hugo.

Index

Types

type KeyValues

type KeyValues struct {
	Key    interface{}
	Values []interface{}
}

KeyValues holds an key and a slice of values.

func NewKeyValuesStrings

func NewKeyValuesStrings(key string, values ...string) KeyValues

func (KeyValues) KeyString

func (k KeyValues) KeyString() string

KeyString returns the key as a string, an empty string if conversion fails.

func (KeyValues) String

func (k KeyValues) String() string

Source Files

types.go

Version
v0.27.1
Published
Sep 13, 2017
Platform
linux/amd64
Imports
2 packages
Last checked
3 hours ago

Tools for package owners.