hugo: github.com/gohugoio/hugo/tpl/reflect Index | Files

package reflect

import "github.com/gohugoio/hugo/tpl/reflect"

Package reflect provides template functions for run-time object reflection.

Index

Package Files

init.go reflect.go

type Namespace Uses

type Namespace struct{}

Namespace provides template functions for the "reflect" namespace.

func New Uses

func New() *Namespace

New returns a new instance of the reflect-namespaced template functions.

func (*Namespace) IsMap Uses

func (ns *Namespace) IsMap(v interface{}) bool

IsMap reports whether v is a map.

func (*Namespace) IsSlice Uses

func (ns *Namespace) IsSlice(v interface{}) bool

IsSlice reports whether v is a slice.

Package reflect imports 3 packages (graph) and is imported by 10 packages. Updated 2019-08-29. Refresh now. Tools for package owners.