util

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsJson

func AsJson(data interface{}) []byte

AsJson Takes any struct and serializes it into a byte array

func FromJson added in v0.5.2

func FromJson(data []byte, target interface{})

FromJson Takes a json byte array and unmarshalls it into a given object. Pointer has to be passed

Types

This section is empty.

Jump to

Keyboard shortcuts

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