json

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package json provides JSON marshalling and unmarshalling for basic types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(d interface{}) []byte

Marshal marshals a given object into JSON. This must succeed and will panic on fail.

func UnmarshalInt

func UnmarshalInt(data []byte) int

UnmarshalInt unmarshalls an int from JSON. Will panic on fail

func UnmarshalString

func UnmarshalString(data []byte) string

UnmarshalString unmarshalls a string from JSON. Will panic on fail

func UnmarshalTime

func UnmarshalTime(data []byte) time.Time

UnmarshalTime unmarshalls a time.Time from JSON. Will panic on fail

Types

This section is empty.

Jump to

Keyboard shortcuts

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