Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import "fmt"

var _ templaterForResource = versionTemplater{}

type versionTemplater struct {
}
type versionTemplater struct{}

func (c versionTemplater) template(data GeneratorData) (*string, error) {
copyrightLines, err := copyrightLinesForSource(data.source)
Expand All @@ -30,7 +29,7 @@ func userAgent() string {
return "hashicorp/go-azure-sdk/%[1]s/%[3]s"
}

func ApiVersion() string {
func AzureAPIVersion() string {
return defaultApiVersion
}
`, data.packageName, apiVersion, data.apiVersion, *copyrightLines)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func userAgent() string {
return "hashicorp/go-azure-sdk/somepackage/2022-02-01"
}

func ApiVersion() string {
func AzureAPIVersion() string {
return defaultApiVersion
}
`
Expand Down
Loading