Skip to content

Commit c36ff35

Browse files
committed
Add Go ReportCard
1 parent 75434b2 commit c36ff35

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# pflag-date #
22
[![Go Reference](https://pkg.go.dev/badge/github.com/gbarr/pflag-date.svg)](https://pkg.go.dev/github.com/gbarr/pflag-date)
33
[![codecov](https://codecov.io/github/gbarr/pflag-date/graph/badge.svg?token=WCV5JUZHFY)](https://codecov.io/github/gbarr/pflag-date)
4+
[![Go ReportCard](https://goreportcard.com/badge/gbarr/pflag-date)](http://goreportcard.com/report/gbarr/pflag-date)
45
[![golangci-lint](https://github.com/gbarr/pflag-date/actions/workflows/lint.yml/badge.svg)](https://github.com/gbarr/pflag-date/actions/workflows/lint.yml)
56

67
[`pflag-date`](https://github.com/gbarr/pflag-date) implements a Golang [`pflag.Value`](https://pkg.go.dev/github.com/spf13/pflag#Value) interface for `YYYY-MM-DD`-specified dates.

example/example.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"fmt"
5+
56
pfdate "github.com/gbarr/pflag-date"
67
"github.com/spf13/pflag"
78
)
@@ -12,4 +13,3 @@ func main() {
1213
pflag.Parse()
1314
fmt.Println("date:", dt.String())
1415
}
15-

0 commit comments

Comments
 (0)