base

package
v0.0.0-...-fecf105 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2014 License: MIT Imports: 14 Imported by: 15

Documentation

Index

Constants

View Source
const (
	PVD_GITHUB = "github.com"
	PVD_GOOGLE = "code.google.com"
)

Variables

View Source
var (
	ErrCvsURIInvalid    = errors.New("cvs uri invalid")
	ErrCvsNotRecognized = errors.New("cvs path not recognized")
)
View Source
var ProviderCtrlMap = map[string]string{
	PVD_GITHUB: "git",
	PVD_GOOGLE: "hg",
}
View Source
var TemplateFuncs = template.FuncMap{
	"title":     strings.Title,
	"ansi2html": ansi2html,
	"timesince": timeSince,
}

Functions

func HttpGetJSON

func HttpGetJSON(url string, values url.Values, data interface{}) error

func Objc2Str

func Objc2Str(v interface{}) string

func Str2Objc

func Str2Objc(s string, v interface{}) error

func ToStr

func ToStr(value interface{}, args ...int) (s string)

convert any type to string

Types

type CVSInfo

type CVSInfo struct {
	Provider       string
	VersionControl string
	Owner          string
	Branch         string
	RepoName       string
	RepoSubPath    string
	FullPath       string
}

func ParseCvsURI

func ParseCvsURI(uri string) (*CVSInfo, error)

type StrTo

type StrTo string

func (StrTo) Exist

func (f StrTo) Exist() bool

func (StrTo) Int

func (f StrTo) Int() (int, error)

func (StrTo) Int64

func (f StrTo) Int64() (int64, error)

func (StrTo) String

func (f StrTo) String() string

Jump to

Keyboard shortcuts

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