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 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.

Source Files

init.go reflect.go

Version
v0.144.2 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
7 hours ago

Tools for package owners.