profile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureFlag

type FeatureFlag uint64

FeatureFlag is part of the experimental JSONKit API.

const (
	// FeatureLineComments is an experimental JSONKit constant.
	FeatureLineComments FeatureFlag = 1 << iota
	// FeatureBlockComments is an experimental JSONKit constant.
	FeatureBlockComments
	// FeatureTrailingCommas is an experimental JSONKit constant.
	FeatureTrailingCommas
	// FeatureSingleQuotes is an experimental JSONKit constant.
	FeatureSingleQuotes
	// FeatureUnquotedKeys is an experimental JSONKit constant.
	FeatureUnquotedKeys
)

type Profile

type Profile struct {
	ID      ProfileID
	Enabled FeatureFlag
}

Profile is part of the experimental JSONKit API.

func Lookup

func Lookup(id ProfileID) (Profile, bool)

Lookup is part of the experimental JSONKit API.

func (Profile) Has

func (p Profile) Has(flag FeatureFlag) bool

type ProfileID

type ProfileID string

ProfileID is part of the experimental JSONKit API.

const (
	// ProfileStrict is an experimental JSONKit constant.
	ProfileStrict ProfileID = "strict"
	// ProfileJSONC is an experimental JSONKit constant.
	ProfileJSONC ProfileID = "jsonc"
	// ProfileJSON5 is an experimental JSONKit constant.
	ProfileJSON5 ProfileID = "json5"
)

Jump to

Keyboard shortcuts

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