text

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Fmttype_Json    = 1
	Fmttype_Form    = 2
	Fmttype_Text    = 3
	Fmttype_Jsonstr = 4 // 在json的字符串内
)

Variables

This section is empty.

Functions

func AsJsonString

func AsJsonString(data interface{}) (val string, err error)

func AsJsonstrString

func AsJsonstrString(data interface{}) (val string, err error)

func AsQueryString

func AsQueryString(data interface{}) (val string, err error)

func AsString

func AsString(data interface{}, ft int) (val string, err error)

func AsTextString

func AsTextString(data interface{}) (val string, err error)

func GetAsString

func GetAsString(data interface{}, key string, ft int, failIfNotExists bool) (val string, err error)

func Subst

func Subst(exprvar string, data interface{}, ft int, failIfNotExists bool) (v string, err error)

Types

This section is empty.

Directories

Path Synopsis
internal
encoding/json
Package json implements encoding and decoding of JSON objects as defined in RFC 4627.
Package json implements encoding and decoding of JSON objects as defined in RFC 4627.

Jump to

Keyboard shortcuts

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