common

package
v0.0.0-...-685c49b Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertInterfaceToJson

func ConvertInterfaceToJson(obj interface{}) []byte

Types

type Error

type Error struct {
	What string `json:"error"`
	Code int    `json:"code"`
}

func ConvertJsonToInterface

func ConvertJsonToInterface(encodedJson string) (interface{}, *Error)

func InvalidArgumentError

func InvalidArgumentError(argument string) *Error

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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