dist

package
v0.0.0-...-ed2a3ae Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const RepoName = "aframe-vr-player"
View Source
const RepoOwner = "mysterion"

Variables

This section is empty.

Functions

func Delete

func Delete() error

func DownloadCommit

func DownloadCommit(sha string) error

func Update

func Update(sha string) error

func Valid

func Valid() bool

checks if dist is present

func Ver

func Ver() string

returns sha of aframe-vr-player dist

Types

type Commit

type Commit struct {
	Sha     string        `json:"sha"`
	Details CommitDetails `json:"commit"`
}

curl https://api.github.com/repos/mysterion/aframe-vr-player/commits?per_page=1

func GetLatestCommit

func GetLatestCommit() (Commit, error)

type CommitDetails

type CommitDetails struct {
	Sha    string `json:"sha"`
	Author struct {
		Name string    `json:"name"`
		Date time.Time `json:"date"`
	} `json:"author"`
	Message string `json:"message"`
}

func GetCommit

func GetCommit(sha string) (CommitDetails, error)

Jump to

Keyboard shortcuts

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