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

type Namespace struct{}

Namespace provides template functions for the "reflect" namespace.

func New

func New() *Namespace

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

func (*Namespace) IsMap

func (ns *Namespace) IsMap(v any) bool

IsMap reports whether v is a map.

func (*Namespace) IsSlice

func (ns *Namespace) IsSlice(v any) bool

IsSlice reports whether v is a slice.

Version
v0.101.0 (latest)
Published
Jun 16, 2022
Platform
linux/amd64
Imports
3 packages (graph)
Last checked
4 hours ago

Tools for package owners.