Skip to content

Commit

Permalink
Merge pull request #201 from wader/bump-github-go-version-1.18.0
Browse files Browse the repository at this point in the history
Update github-go-version from 1.17.7, 1.17.7, 1.17.7 to 1.18.0
  • Loading branch information
wader authored Mar 18, 2022
2 parents 57377e8 + e5f61e2 commit b60726a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17.7
go-version: 1.18.0
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17.7
go-version: 1.18.0
- name: Test
env:
GOARCH: ${{ matrix.goarch }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17.7
go-version: 1.18.0
- uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
Expand Down
9 changes: 8 additions & 1 deletion format/matroska/ebml/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ func findDefintion(docs []Documentation) (string, bool) {
return "", false
}

func title(s string) string {
if len(s) <= 1 {
return s
}
return strings.ToUpper(s[0:1]) + s[1:]
}

func main() {
xmlPath := os.Args[1]
r, err := os.Open(xmlPath)
Expand Down Expand Up @@ -135,7 +142,7 @@ func main() {
if defOk {
fmt.Printf("\t\tDefinition: %q,\n", def)
}
fmt.Printf("\t\tType: ebml.%s%s,\n", strings.Title(typ), extra)
fmt.Printf("\t\tType: ebml.%s%s,\n", title(typ), extra)
if len(c.Enums) > 0 {
switch c.Type {
case "integer":
Expand Down

0 comments on commit b60726a

Please sign in to comment.