github

package
v0.0.0-...-a2b96ca Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package github :: github.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	GetLatestReleaseTag(string) (string, error)
	GetReleaseTags(string) ([]string, error)
}

API interface

type Github

type Github struct{}

Github struct

func (*Github) GetLatestReleaseTag

func (gh *Github) GetLatestReleaseTag(repo string) (string, error)

GetLatestReleaseTag returns the lastest release tag

func (*Github) GetReleaseTags

func (gh *Github) GetReleaseTags(repo string) ([]string, error)

GetReleaseTags returns all releases tag name per a repository

type Release

type Release struct {
	ID      uint   `json:"id"`
	TagName string `json:"tag_name"`
}

Release struct

Jump to

Keyboard shortcuts

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