util

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: May 22, 2014 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiUrl

func ApiUrl(ctx context.Context) string

func CopyFile

func CopyFile(src string, dst string) (int64, error)

func IsValidFileName

func IsValidFileName(a string) bool

func IsValidParamName

func IsValidParamName(a string) bool

func RandString

func RandString(l int) (s string)

func StringInSlice

func StringInSlice(a string, list []string) bool

func ToInt

func ToInt(s string) (i int)

Types

type Query

type Query struct {
	// contains filtered or unexported fields
}

func Q

func Q(l map[string][]string) *Query

func (*Query) All

func (q *Query) All() map[string][]string

func (*Query) Has

func (q *Query) Has(key string) bool

func (*Query) List

func (q *Query) List(key string) []string

func (*Query) Value

func (q *Query) Value(key string) string

type UrlResponse

type UrlResponse struct {
	Url       string `json:"url"`
	ValidTill string `json:"validtill"`
}

Jump to

Keyboard shortcuts

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