parser

package
v0.123.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 added in v0.123.10

type LowerCaseCamelJSONMarshaller struct {
	Value any
}

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

func (LowerCaseCamelJSONMarshaller) MarshalJSON added in v0.123.10

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

type NullBoolJSONMarshaller added in v0.123.10

type NullBoolJSONMarshaller struct {
	Wrapped json.Marshaler
}

func (NullBoolJSONMarshaller) MarshalJSON added in v0.123.10

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

type ReplacingJSONMarshaller added in v0.123.10

type ReplacingJSONMarshaller struct {
	Value any

	KeysToLower bool
	OmitEmpty   bool
}

func (ReplacingJSONMarshaller) MarshalJSON added in v0.123.10

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

Directories

Path Synopsis
Package pageparser provides a parser for Hugo content files (Markdown, HTML etc.) in Hugo.
Package pageparser provides a parser for Hugo content files (Markdown, HTML etc.) in Hugo.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL