#!/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