package parser

import "github.com/gohugoio/hugo/parser"

Index

Functions

func InterfaceToConfig

func InterfaceToConfig(in any, format metadecoders.Format, w io.Writer) error

func InterfaceToFrontMatter

func InterfaceToFrontMatter(in any, format metadecoders.Format, w io.Writer) error

Types

type LowerCaseCamelJSONMarshaller

type LowerCaseCamelJSONMarshaller struct {
	Value any
}

Code adapted from https://gist.github.com/piersy/b9934790a8892db1a603820c0c23e4a7

func (LowerCaseCamelJSONMarshaller) MarshalJSON

func (c LowerCaseCamelJSONMarshaller) MarshalJSON() ([]byte, error)

type NullBoolJSONMarshaller

type NullBoolJSONMarshaller struct {
	Wrapped json.Marshaler
}

func (NullBoolJSONMarshaller) MarshalJSON

func (c NullBoolJSONMarshaller) MarshalJSON() ([]byte, error)

type ReplacingJSONMarshaller

type ReplacingJSONMarshaller struct {
	Value any

	KeysToLower bool
	OmitEmpty   bool
}

func (ReplacingJSONMarshaller) MarshalJSON

func (c ReplacingJSONMarshaller) MarshalJSON() ([]byte, error)

Source Files

frontmatter.go lowercase_camel_json.go

Directories

PathSynopsis
parser/metadecoders
parser/pageparserPackage pageparser provides a parser for Hugo content files (Markdown, HTML etc.) in Hugo.
Version
v0.144.2 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
12 packages
Last checked
13 hours ago

Tools for package owners.