rwxrob-dot/scripts/gobadges

16 lines
515 B
Plaintext
Raw Normal View History

2022-02-09 07:29:05 +00:00
#!/usr/bin/env bash
url="$1"
if [[ -e go.mod ]];then
url=$(head -1 go.mod)
url=${url#* }
fi
echo "![WIP](https://img.shields.io/badge/status-wip-red.svg)"
echo "[![GoDoc](https://godoc.org/$url?status.svg)](https://godoc.org/$url)"
echo "[![License](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](LICENSE)"
echo "[![Go Report Card](https://goreportcard.com/badge/$url)](https://goreportcard.com/report/$url)"
echo "[![Coverage](https://gocover.io/_badge/$url)](https://gocover.io/$url)"
echo