pulumi/sdk/go/common/tokens
Abhinav Gupta e7aa7c484f
sdk/go: Add tokens.ValidateProjectName
As pointed out in
https://github.com/pulumi/pulumi/pull/13078#discussion_r1227854722,
we repreatedly reimplement the project name validation logic.

This moves it to a central place: `tokens.ValidateProjectName`,
and re-uses it in existing places where copies were found.
2023-06-13 10:08:31 -07:00
..
names.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
names_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
project.go sdk/go: Add tokens.ValidateProjectName 2023-06-13 10:08:31 -07:00
project_test.go sdk/go: Add tokens.ValidateProjectName 2023-06-13 10:08:31 -07:00
tokens.go Move simplifyTypeName to DisplayName() method on token.Type 2023-04-13 14:44:07 -07:00
tokens_test.go Move simplifyTypeName to DisplayName() method on token.Type 2023-04-13 14:44:07 -07:00