jsons

package
v0.0.0-...-82e7740 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 4 Imported by: 0

README

util-jsons GoDoc

json library for Go

Installation

go get gopkg.in/goyy/goyy.v0/util/jsons

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(s string) string

Format format json --------------------------------- from: `ab\"cd

ef g`

--------------------------------- to : `ab\\\"cd\n\t\tef g` ---------------------------------

func Parse

func Parse(json string) string

Parse parse json --------------------------------- from: `ab\\\"cd\n\t\tef g` --------------------------------- to : `ab\"cd

ef g`

---------------------------------

func SetPriority

func SetPriority(value int)

SetPriority set the priority of the logger.

Types

type Parser

type Parser interface {
	Value(key string) string
	Len(key string) int
}

Parser json parser.

func NewParser

func NewParser(json string) (Parser, error)

NewParser return new json parser.

Jump to

Keyboard shortcuts

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