github

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 6 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Release

type Release struct {
	ID      int64
	TagName string
	*Releaser
}

Release represents a Github release

func (*Release) UploadAsset

func (r *Release) UploadAsset(path string) error

UploadAsset uploads asset to the release

type Releaser

type Releaser struct {
	// contains filtered or unexported fields
}

Releaser releases to Github

func NewReleaser

func NewReleaser(owner, repo, token string) (*Releaser, error)

NewReleaser creates a new Releaser instance

func (*Releaser) Create

func (r *Releaser) Create(name string) (*Release, error)

Create creates a new Github release

func (*Releaser) Find

func (r *Releaser) Find(tagName string) (*Release, error)

Find finds Github release by tag name

func (*Releaser) Latest

func (r *Releaser) Latest() (*Release, error)

Latest finds the latest Github release

Jump to

Keyboard shortcuts

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