jsonz

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// https://github.com/golang/lint/blob/master/lint.go#L770
	CommonInitialisms         = []string{"API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "LHS", "QPS", "RAM", "RHS", "RPC", "SLA", "SMTP", "SSH", "TLS", "TTL", "UID", "UI", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XSRF", "XSS"}
	CommonInitialismsReplacer *strings.Replacer
)

Functions

func ParseTag

func ParseTag(tag string) (string, tagOptions)

parseTag splits a struct field's json tag into its name and comma-separated options.

Types

type Json

type Json interface {
	Unmarshal(data []byte, v any) error
	Marshal(v any) ([]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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