src

package
v0.0.0-...-099983e Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2018 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

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 ExecMake

func ExecMake(args []string, usage func())

func ExecSearch

func ExecSearch(args []string)

func GetDescriptionForGopkg

func GetDescriptionForGopkg(gopkg string) (string, error)

func GetHomepageForGopkg

func GetHomepageForGopkg(gopkg string) string

func GetLicenseForGopkg

func GetLicenseForGopkg(gopkg string) (string, error)

func InitGithub

func InitGithub()

func NameFromGopkg

func NameFromGopkg(gopkg, t string, allowUnknownHoster bool) string

This follows https://fedoraproject.org/wiki/PackagingDrafts/Go#Package_Names

func NewUpstreamSource

func NewUpstreamSource(gopath, repo, revision string) (*upstream, error)

Types

type TextRenderer

type TextRenderer struct {
}
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) Header

func (options *TextRenderer) Header(out *bytes.Buffer, text func() bool, level int, id string)

func (*TextRenderer) Image

func (options *TextRenderer) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte)

func (*TextRenderer) LineBreak

func (options *TextRenderer) LineBreak(out *bytes.Buffer)
func (options *TextRenderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte)

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) Table

func (options *TextRenderer) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int)

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)

Jump to

Keyboard shortcuts

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