Skip to content

Commit

Permalink
Use golang stdlib 'regexp', not 'regexache'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Sep 18, 2024
1 parent 27fccd4 commit ed9722f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
16 changes: 8 additions & 8 deletions endpoints/endpoints_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.22
toolchain go1.22.7

require (
github.com/YakDriver/regexache v0.24.0
github.com/aws/aws-sdk-go-v2 v1.30.5
github.com/aws/aws-sdk-go-v2/config v1.27.35
github.com/aws/aws-sdk-go-v2/credentials v1.17.33
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+
github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
github.com/YakDriver/regexache v0.24.0 h1:zUKaixelkswzdqsqPc2sveiV//Mi/msJn0teG8zBDiA=
github.com/YakDriver/regexache v0.24.0/go.mod h1:awcd8uBj614F3ScW06JqlfSGqq2/7vdJHy+RiKzVC+g=
github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI=
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
github.com/aws/aws-sdk-go-v2 v1.30.5 h1:mWSRTwQAb0aLE17dSzztCVJWI9+cRMgqebndjwDyK0g=
Expand Down
4 changes: 2 additions & 2 deletions internal/generate/endpoints/output.go.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package endpoints

import (
"github.com/YakDriver/regexache"
"regexp"
)

// All known partition IDs.
Expand Down Expand Up @@ -39,7 +39,7 @@ var (
id: {{ .ID | KebabToTitle}}PartitionID,
name: "{{ .Name }}",
dnsSuffix: "{{ .DNSSuffix }}",
regionRegex: regexache.MustCompile(`{{ .RegionRegex }}`),
regionRegex: regexp.MustCompile(`{{ .RegionRegex }}`),
},
regions: map[string]Region{
{{- range .Regions }}
Expand Down

0 comments on commit ed9722f

Please sign in to comment.