base

package
v0.0.0-...-f867dd8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2014 License: MIT Imports: 13 Imported by: 0

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

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)

Jump to

Keyboard shortcuts

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