Documentation
¶
Overview ¶
Package gostd contains go standard helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BadgeGoDoc = `{{define "badge/godoc" -}}
[!` +
`[GoDoc]` +
`(https://godoc.org/{{.ProviderURL}}/{{.User}}/{{.Name}}?status.svg)` +
`]` +
`(http://godoc.org/{{.ProviderURL}}/{{.User}}/{{.Name}})
{{- end}}`
BadgeGoDoc is a template to show a godoc badge.
View Source
var BadgeGoReport = `{{define "badge/goreport" -}}
[!` +
`[Go Report Card]` +
`(https://goreportcard.com/badge/{{.ProviderURL}}/{{.User}}/{{.Name}})` +
`]` +
`(https://goreportcard.com/report/{{.ProviderURL}}/{{.User}}/{{.Name}})
{{- end}}`
BadgeGoReport is a template to show a goreport badge.
View Source
var InstructionGoGetInstall = `{{define "go/install" -}}
` + "```sh" + `
go get {{.ProviderURL}}/{{.User}}/{{.Name}}
` + "```" + `
{{- end}}`
InstructionGoGetInstall is a template to show instructions to install the package with go get.
Functions ¶
func GoTest ¶
GoTest Reads the first of the files, or `main.go`, lookup for its package comment and returns it as plain text.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.