url2

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bufsize = 128

Functions

func Param

func Param(i interface{}) string

Param convert i to params string, join with ",", without escape

Only support int, []int, uint, []uint, string, []string, []byte

func Query

func Query(params map[string]string, buf *bytes.Buffer) ([]byte, bool)

Query parameters to url query string without escape, if buf is not nil, and there is more than one parameter, the allocated buffer will stored to *buf

func QueryEscape

func QueryEscape(params map[string]string, buf *bytes.Buffer) ([]byte, bool)

QueryEscape is same as Query, but escape the query string

Types

This section is empty.

Jump to

Keyboard shortcuts

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