Documentation ¶
Index ¶
- Constants
- Variables
- func ExecCreateSalsaProject(args []string)
- func ExecEstimate(args []string)
- func ExecMake(args []string, usage func())
- func ExecSearch(args []string)
- func GetDescriptionForGopkg(gopkg string) (string, error)
- func GetHomepageForGopkg(gopkg string) string
- func GetLicenseForGopkg(gopkg string) (string, error)
- func InitGithub()
- func NameFromGopkg(gopkg, t string, allowUnknownHoster bool) string
- func NewUpstreamSource(gopath, repo, revision string) (*upstream, error)
- type TextRenderer
- func (options *TextRenderer) AutoLink(out *bytes.Buffer, link []byte, kind int)
- func (options *TextRenderer) BlockCode(out *bytes.Buffer, text []byte, lang string)
- func (options *TextRenderer) BlockHtml(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) BlockQuote(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) CodeSpan(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) DocumentFooter(out *bytes.Buffer)
- func (options *TextRenderer) DocumentHeader(out *bytes.Buffer)
- func (options *TextRenderer) DoubleEmphasis(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) Emphasis(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) Entity(out *bytes.Buffer, entity []byte)
- func (options *TextRenderer) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int)
- func (options *TextRenderer) FootnoteRef(out *bytes.Buffer, ref []byte, id int)
- func (options *TextRenderer) Footnotes(out *bytes.Buffer, text func() bool)
- func (options *TextRenderer) GetFlags() int
- func (options *TextRenderer) HRule(out *bytes.Buffer)
- func (options *TextRenderer) Header(out *bytes.Buffer, text func() bool, level int, id string)
- func (options *TextRenderer) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte)
- func (options *TextRenderer) LineBreak(out *bytes.Buffer)
- func (options *TextRenderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte)
- func (options *TextRenderer) List(out *bytes.Buffer, text func() bool, flags int)
- func (options *TextRenderer) ListItem(out *bytes.Buffer, text []byte, flags int)
- func (options *TextRenderer) NormalText(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) Paragraph(out *bytes.Buffer, text func() bool)
- func (options *TextRenderer) RawHtmlTag(out *bytes.Buffer, tag []byte)
- func (options *TextRenderer) StrikeThrough(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int)
- func (options *TextRenderer) TableCell(out *bytes.Buffer, text []byte, flags int)
- func (options *TextRenderer) TableHeaderCell(out *bytes.Buffer, text []byte, flags int)
- func (options *TextRenderer) TableRow(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) TitleBlock(out *bytes.Buffer, text []byte)
- func (options *TextRenderer) TripleEmphasis(out *bytes.Buffer, text []byte)
Constants ¶
View Source
const ( Kibi Mebi Gibi Tebi Pebi Exbi )
Variables ¶
View Source
var (
GitHub *github.Client
)
View Source
var GithubLicenseToDistroLicense = map[string]string{
"apache-2.0": "Apache-2.0",
"artistic-2.0": "Artistic-2.0",
"bsd-2-clause": "BSD-2-clause",
"bsd-3-clause": "BSD-3-clause",
"cc0-1.0": "CC0-1.0",
"gpl-2.0": "GPL-2.0",
"gpl-3.0": "GPL-3.0",
"isc": "ISC",
"lgpl-2.1": "LGPL-2.1",
"lgpl-3.0": "LGPL-3.0",
"mpl-2.0": "MPL-2.0",
}
To update, use: curl -s https://api.github.com/licenses | jq '.[].key' then compare with https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/#license-specification
Functions ¶
func ExecCreateSalsaProject ¶
func ExecCreateSalsaProject(args []string)
func ExecEstimate ¶
func ExecEstimate(args []string)
func ExecSearch ¶
func ExecSearch(args []string)
func GetDescriptionForGopkg ¶
func GetHomepageForGopkg ¶
func GetLicenseForGopkg ¶
func InitGithub ¶
func InitGithub()
func NameFromGopkg ¶
This follows https://fedoraproject.org/wiki/PackagingDrafts/Go#Package_Names
func NewUpstreamSource ¶
Types ¶
type TextRenderer ¶
type TextRenderer struct { }
func (*TextRenderer) AutoLink ¶
func (options *TextRenderer) AutoLink(out *bytes.Buffer, link []byte, kind int)
Span-level callbacks
func (*TextRenderer) BlockCode ¶
func (options *TextRenderer) BlockCode(out *bytes.Buffer, text []byte, lang string)
func (*TextRenderer) BlockHtml ¶
func (options *TextRenderer) BlockHtml(out *bytes.Buffer, text []byte)
func (*TextRenderer) BlockQuote ¶
func (options *TextRenderer) BlockQuote(out *bytes.Buffer, text []byte)
func (*TextRenderer) CodeSpan ¶
func (options *TextRenderer) CodeSpan(out *bytes.Buffer, text []byte)
func (*TextRenderer) DocumentFooter ¶
func (options *TextRenderer) DocumentFooter(out *bytes.Buffer)
func (*TextRenderer) DocumentHeader ¶
func (options *TextRenderer) DocumentHeader(out *bytes.Buffer)
Header and footer
func (*TextRenderer) DoubleEmphasis ¶
func (options *TextRenderer) DoubleEmphasis(out *bytes.Buffer, text []byte)
func (*TextRenderer) Emphasis ¶
func (options *TextRenderer) Emphasis(out *bytes.Buffer, text []byte)
func (*TextRenderer) Entity ¶
func (options *TextRenderer) Entity(out *bytes.Buffer, entity []byte)
Low-level callbacks
func (*TextRenderer) FootnoteItem ¶
func (options *TextRenderer) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int)
func (*TextRenderer) FootnoteRef ¶
func (options *TextRenderer) FootnoteRef(out *bytes.Buffer, ref []byte, id int)
func (*TextRenderer) Footnotes ¶
func (options *TextRenderer) Footnotes(out *bytes.Buffer, text func() bool)
func (*TextRenderer) GetFlags ¶
func (options *TextRenderer) GetFlags() int
func (*TextRenderer) HRule ¶
func (options *TextRenderer) HRule(out *bytes.Buffer)
func (*TextRenderer) LineBreak ¶
func (options *TextRenderer) LineBreak(out *bytes.Buffer)
func (*TextRenderer) List ¶
func (options *TextRenderer) List(out *bytes.Buffer, text func() bool, flags int)
func (*TextRenderer) ListItem ¶
func (options *TextRenderer) ListItem(out *bytes.Buffer, text []byte, flags int)
func (*TextRenderer) NormalText ¶
func (options *TextRenderer) NormalText(out *bytes.Buffer, text []byte)
func (*TextRenderer) Paragraph ¶
func (options *TextRenderer) Paragraph(out *bytes.Buffer, text func() bool)
func (*TextRenderer) RawHtmlTag ¶
func (options *TextRenderer) RawHtmlTag(out *bytes.Buffer, tag []byte)
func (*TextRenderer) StrikeThrough ¶
func (options *TextRenderer) StrikeThrough(out *bytes.Buffer, text []byte)
func (*TextRenderer) TableCell ¶
func (options *TextRenderer) TableCell(out *bytes.Buffer, text []byte, flags int)
func (*TextRenderer) TableHeaderCell ¶
func (options *TextRenderer) TableHeaderCell(out *bytes.Buffer, text []byte, flags int)
func (*TextRenderer) TableRow ¶
func (options *TextRenderer) TableRow(out *bytes.Buffer, text []byte)
func (*TextRenderer) TitleBlock ¶
func (options *TextRenderer) TitleBlock(out *bytes.Buffer, text []byte)
func (*TextRenderer) TripleEmphasis ¶
func (options *TextRenderer) TripleEmphasis(out *bytes.Buffer, text []byte)
Click to show internal directories.
Click to hide internal directories.