Skip to content

Commit eca94c8

Browse files
committed
expose func to programatically obtain the API version in use
1 parent f93fd95 commit eca94c8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/generator-go-sdk/internal/generator/templater_version.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ const defaultApiVersion = "%[2]s"
2929
func userAgent() string {
3030
return "hashicorp/go-azure-sdk/%[1]s/%[3]s"
3131
}
32+
33+
func ApiVersion() string {
34+
return defaultApiVersion
35+
}
3236
`, data.packageName, apiVersion, data.apiVersion, *copyrightLines)
3337
return &template, nil
3438
}

0 commit comments

Comments
 (0)