utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJSON added in v1.0.5

func IsJSON(s string) bool

Checks if a string is in JSON format

func Trim

func Trim(str string) string

Trim remove all empty spaces from string

Types

type JsonError added in v1.0.5

type JsonError struct {
	Err error
}

Error struct to carry json errors Reference: "github.com/kinbiko/jsonassert" (Printer)

func (*JsonError) Errorf added in v1.0.5

func (e *JsonError) Errorf(msg string, args ...interface{})

Sets a formatted error

Jump to

Keyboard shortcuts

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