File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ install:
35
35
go install ./cmd/minimock
36
36
37
37
./bin/golangci-lint : ./bin
38
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.55.2
38
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.64.8
39
39
40
40
./bin/goreleaser : ./bin
41
41
go install -modfile tools/go.mod github.com/goreleaser/goreleaser
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ import (
12
12
"strings"
13
13
"text/template"
14
14
"time"
15
+ "unicode"
15
16
16
17
"github.com/gojuno/minimock/v3"
17
18
"github.com/gojuno/minimock/v3/internal/types"
18
19
"github.com/hexdigest/gowrap/generator"
19
20
"github.com/hexdigest/gowrap/pkg"
20
21
"github.com/pkg/errors"
21
- "golang.org/x/text/cases"
22
22
"golang.org/x/tools/go/packages"
23
23
)
24
24
33
33
)
34
34
35
35
var helpers = template.FuncMap {
36
- "title" : cases .Title ,
36
+ "title" : func (s string ) string {
37
+ runes := []rune (s )
38
+ for i , r := range runes {
39
+ if unicode .IsLetter (r ) {
40
+ runes [i ] = unicode .ToUpper (r )
41
+ break
42
+ }
43
+ }
44
+ return string (runes )
45
+ },
37
46
"in" : func (s string , in ... string ) bool {
38
47
s = strings .Trim (s , " " )
39
48
for _ , i := range in {
You can’t perform that action at this time.
0 commit comments