package reflect

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

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

Index

Types

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 interface{}) bool

IsMap reports whether v is a map.

func (*Namespace) IsSlice

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

IsSlice reports whether v is a slice.

Source Files

init.go reflect.go

Version
v0.88.1
Published
Sep 4, 2021
Platform
js/wasm
Imports
3 packages
Last checked
22 minutes ago

Tools for package owners.