Skip to content

Commit

Permalink
Comments above generated Region and partitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Dec 2, 2024
1 parent f7cd2ce commit 5ae9062
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion endpoints/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
package endpoints

const (
AwsGlobalRegionID = "aws-global" // AWS Standard global region.
// AWS Standard global region.
AwsGlobalRegionID = "aws-global"
)
6 changes: 4 additions & 2 deletions internal/generate/endpoints/output.go.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import (
// All known partition IDs.
const (
{{- range .Partitions }}
{{ .ID | IDToTitle}}PartitionID = "{{ .ID }}" // {{ .Name }}
// {{ .Name }}
{{ .ID | IDToTitle}}PartitionID = "{{ .ID }}"
{{- end }}
)

Expand All @@ -21,7 +22,8 @@ const (
{{- range .Partitions }}
// {{ .Name }} partition's Regions.
{{- range .Regions }}
{{ .ID | IDToTitle}}RegionID = "{{ .ID }}" // {{ .Description }}
// {{ .Description }}
{{ .ID | IDToTitle}}RegionID = "{{ .ID }}"
{{- end }}
{{- end }}
)
Expand Down

0 comments on commit 5ae9062

Please sign in to comment.