sjson

package
v0.0.0-...-6d0effa Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// ContentType is the content type for json
	ContentType = "application/json"
)

Variables

This section is empty.

Functions

func Bind

func Bind(r *http.Request, v any) error

func HttpWrite

func HttpWrite(w http.ResponseWriter, v any) bool

HttpWrite writes the v to the http.ResponseWriter

func Marshal

func Marshal(v any) ([]byte, error)

func ToSnackedName

func ToSnackedName(name string) string

func Unmarshal

func Unmarshal(data []byte, v any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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