Skip to content

Commit

Permalink
Merge pull request #4 from fgm/3-readme-missing-link-to-online-godoc
Browse files Browse the repository at this point in the history
Issue #3: add a godoc / pkg.go.dev badge/link. Fix Cobra example.
  • Loading branch information
fgm authored Mar 12, 2024
2 parents 8ffc41e + 3cd51ec commit da7155a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# HTTP Headers for spf13/pflag

[![Go Reference](https://pkg.go.dev/badge/pkg.go.dev/github.com/fgm/pflagheaders.svg)](https://pkg.go.dev/github.com/fgm/pflagheaders)
[![fgm](https://circleci.com/gh/fgm/pflagheaders.svg?style=shield)](https://app.circleci.com/pipelines/github/fgm/pflagheaders)
[![codecov](https://codecov.io/gh/fgm/pflagheaders/branch/main/graph/badge.svg?token=O6LQF0BGGF)](https://codecov.io/gh/fgm/pflagheaders)
[![Go Report Card](https://goreportcard.com/badge/github.com/fgm/pflagheaders)](https://goreportcard.com/report/github.com/fgm/pflagheaders)
Expand Down Expand Up @@ -64,7 +65,7 @@ var header = &pfh.Header{}

var rootCmd = &cobra.Command{
/* generated by Cobra */
Run: func(_ *cobra.Command, _ []string) { fmt.Println(h.Header) }
Run: func(_ *cobra.Command, _ []string) { fmt.Println(header) }
}

func init() {
Expand Down

0 comments on commit da7155a

Please sign in to comment.