gopot

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 7 Imported by: 0

README

gopot

Platform of Trust utility functions for go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSignature

func CreateSignature(d interface{}, secret []byte) (string, error)

CreateSignature creates a pot signature with the given secret

func JSONAddSpaces

func JSONAddSpaces(src []byte) []byte

JSONAddSpaces ands spaces after the value declarations in json

func Marshal

func Marshal(d interface{}) ([]byte, error)

Marshal marshals json with the POT separators added.

Types

type AsciiString

type AsciiString string

AsciiString can be used to escape the utf-8 charracters in the json output

func (AsciiString) MarshalJSON

func (s AsciiString) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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