Skip to content

Commit

Permalink
adding tags/v3 back to the game
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Feb 5, 2020
1 parent 8162f21 commit 5e1c502
Show file tree
Hide file tree
Showing 26 changed files with 31 additions and 37 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Test Status](https://github.com/gobuffalo/tags/workflows/Tests/badge.svg)](https://github.com/gobuffalo/tags/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/gobuffalo/tags)](https://goreportcard.com/report/github.com/gobuffalo/tags)
[![Test Status](https://github.com/gobuffalo/tags/v3/workflows/Tests/badge.svg)](https://github.com/gobuffalo/tags/v3/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/gobuffalo/tags/v3)](https://goreportcard.com/report/github.com/gobuffalo/tags/v3)

# Tags

Expand All @@ -15,7 +15,7 @@ Tags has a minimum Go dependency of 1.8.1.
To get this lib just get it via `go get`

```
go get -u -v github.com/gobuffalo/tags/...
go get -u -v github.com/gobuffalo/tags/v3/...
```
## Running the tests

Expand All @@ -26,7 +26,7 @@ go test ./...
```
## Documentation

Documentation is currently in [this repository Wiki](https://github.com/gobuffalo/tags/wiki), you can find there instructions on how to use tags within your app.
Documentation is currently in [this repository Wiki](https://github.com/gobuffalo/tags/v3/wiki), you can find there instructions on how to use tags within your app.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion form/bootstrap/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"

"github.com/gobuffalo/flect"
"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
)

func buildOptions(opts tags.Options, err bool) {
Expand Down
2 changes: 1 addition & 1 deletion form/bootstrap/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package bootstrap
import (
"testing"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions form/bootstrap/form.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bootstrap

import (
"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/form"
"github.com/gobuffalo/tags/v3"
"github.com/gobuffalo/tags/v3/form"
)

//Form is the bootstrap version of Form
Expand Down
4 changes: 2 additions & 2 deletions form/bootstrap/form_for.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/form"
"github.com/gobuffalo/tags/v3"
"github.com/gobuffalo/tags/v3/form"
"github.com/gobuffalo/validate/validators"
)

Expand Down
2 changes: 1 addition & 1 deletion form/bootstrap/form_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/gobuffalo/validate"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion form/checkbox_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"html/template"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
)

//CheckboxTag builds a checkbox from the options passed
Expand Down
2 changes: 1 addition & 1 deletion form/checkbox_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package form
import (
"testing"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion form/file_tag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package form

import "github.com/gobuffalo/tags"
import "github.com/gobuffalo/tags/v3"

//FileTag builds an input[type=file] from the options passed, it also sets the form enctype to be "multipart/form-data"
func (f Form) FileTag(opts tags.Options) *tags.Tag {
Expand Down
2 changes: 1 addition & 1 deletion form/form.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package form
import (
"strings"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
)

//Form is the html form tag, this will hold other tags inside it.
Expand Down
2 changes: 1 addition & 1 deletion form/form_for.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync"

"github.com/gobuffalo/flect"
"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/gobuffalo/validate"
"github.com/gofrs/uuid"
)
Expand Down
2 changes: 1 addition & 1 deletion form/form_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion form/form_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package form
import (
"testing"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion form/input_tag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package form

import "github.com/gobuffalo/tags"
import "github.com/gobuffalo/tags/v3"

//InputTag generates an input tag with passed options, by default will be type=text.
func (f Form) InputTag(opts tags.Options) *tags.Tag {
Expand Down
2 changes: 1 addition & 1 deletion form/input_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion form/radio_button_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"html/template"
"strings"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
)

//RadioButton creates a radio button for a form with the passed options
Expand Down
2 changes: 1 addition & 1 deletion form/radio_button_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package form
import (
"testing"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion form/select_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"html/template"
"reflect"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
)

// SelectTag describes a HTML <select> tag meta data.
Expand Down
2 changes: 1 addition & 1 deletion form/select_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/gofrs/uuid"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion form/submit_tag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package form

import "github.com/gobuffalo/tags"
import "github.com/gobuffalo/tags/v3"

//SubmitTag generates an input tag with type "submit"
func (f Form) SubmitTag(value string, opts tags.Options) *tags.Tag {
Expand Down
2 changes: 1 addition & 1 deletion form/submit_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package form
import (
"testing"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion form/text_area_tag.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package form

import (
"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
)

//TextArea creates a textarea for a form with passed options
Expand Down
2 changes: 1 addition & 1 deletion form/text_area_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"database/sql/driver"
"testing"

"github.com/gobuffalo/tags"
"github.com/gobuffalo/tags/v3"
"github.com/stretchr/testify/require"
)

Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
module github.com/gobuffalo/tags
module github.com/gobuffalo/tags/v3

go 1.13

require (
github.com/fatih/structs v1.1.0
github.com/gobuffalo/flect v0.2.0
github.com/gobuffalo/tags/v3 v3.0.2 // indirect
github.com/gobuffalo/validate v2.0.4+incompatible
github.com/gofrs/uuid v3.2.0+incompatible
github.com/onsi/ginkgo v1.12.0 // indirect
Expand Down
5 changes: 0 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/gobuffalo/flect v0.2.0 h1:EWCvMGGxOjsgwlWaP+f4+Hh6yrrte7JeFL2S6b+0hdM=
github.com/gobuffalo/flect v0.2.0/go.mod h1:W3K3X9ksuZfir8f/LrfVtWmCDQFfayuylOJ7sz/Fj80=
github.com/gobuffalo/tags/v3 v3.0.2 h1:gxE6c6fA5radwQeg59aPIeYgCG8YA8AZd3Oh6fh5UXA=
github.com/gobuffalo/tags/v3 v3.0.2/go.mod h1:ZQeN6TCTiwAFnS0dNcbDtSgZDwNKSpqajvVtt6mlYpA=
github.com/gobuffalo/validate v2.0.4+incompatible h1:ZTxozrIw8qQ5nfhShmc4izjYPTsPhfdXTdhXOd5OS9o=
github.com/gobuffalo/validate v2.0.4+incompatible/go.mod h1:N+EtDe0J8252BgfzQUChBgfd6L93m9weay53EWFVsMM=
github.com/gobuffalo/validate/v3 v3.0.0 h1:dF7Bg8NMF9Zv8bZvUMXYJXxZdj+eSZ8z/lGM7/jVFUE=
github.com/gobuffalo/validate/v3 v3.0.0/go.mod h1:HFpjq+AIiA2RHoQnQVTFKF/ZpUPXwyw82LgyDPxQ9r0=
github.com/gofrs/uuid v3.2.0+incompatible h1:y12jRkkFxsd7GpqdSZ+/KCs/fJbqpEXSGd4+jfEaewE=
github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
Expand Down Expand Up @@ -50,7 +46,6 @@ gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
4 changes: 2 additions & 2 deletions shoulders.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# github.com/gobuffalo/tags Stands on the Shoulders of Giants
# github.com/gobuffalo/tags/v3 Stands on the Shoulders of Giants

github.com/gobuffalo/tags does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants, this project would not be possible. Please make sure to check them out and thank them for all of their hard work.
github.com/gobuffalo/tags/v3 does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants, this project would not be possible. Please make sure to check them out and thank them for all of their hard work.

Thank you to the following **GIANTS**:

Expand Down

0 comments on commit 5e1c502

Please sign in to comment.