sacred

package module
v0.0.0-...-299d4c7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 2 Imported by: 0

README

sacred

Documentation

Index

Constants

View Source
const (
	LibName    = `sacred`
	LibVersion = `0.8.0`
)

Variables

This section is empty.

Functions

func Version

func Version() string

Version 工具包版本号

Types

type M

type M map[string]interface{}

M is a shortcut for map[string]interface{}

func NewM

func NewM() M

NewM make map[string]interface{}

func (M) Bytes

func (m M) Bytes() []byte

Bytes map to json bytes

func (M) Get

func (m M) Get(k string) (v interface{}, ok bool)

Get value from map[string]interface{}

func (M) MarshalXML

func (m M) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML allows type Map to be used with xml.Marshal.

func (M) Set

func (m M) Set(k string, v interface{})

Set key-value to map[string]interface{}

func (M) String

func (m M) String() string

String map to json string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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