badge

package module
v0.0.0-...-37e9385 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Unlicense Imports: 16 Imported by: 0

Documentation

Overview

Package badge provides repo badge related functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenBadgeHTTP

func GenBadgeHTTP(w http.ResponseWriter, r *http.Request)

GenBadgeHTTP is a HTTP cloud function that returns a badge.

Types

type Badge

type Badge struct {
	Subject string
	Status  string
	Color   string
	Label   string
	List    string
	Icon    string
}

Badge is a GitHub Badge.

func (*Badge) URL

func (b *Badge) URL() string

URL returns the link pointing to the badge image. Service provided by https://badgen.net/

Jump to

Keyboard shortcuts

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