util

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareJSON

func CompareJSON(j1, j2 string) (bool, error)

Take two JSON strings, put them into a go map so that they can be canonically marshalled using JCS. Then, compare the resulting strings.

func GetJSONFile

func GetJSONFile(box *packr.Box, name JSONSchemaFile) (string, error)

func ToJSON

func ToJSON(v interface{}) (string, error)

func Validate

func Validate(t interface{}) error

Generic type validator

Types

type JSONSchemaFile

type JSONSchemaFile string

Jump to

Keyboard shortcuts

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