In the end I came up with ```func trimSuffix(ctx *...
# golang
b
In the end I came up with
Copy code
func trimSuffix(ctx *pulumi.Context, s pulumi.StringOutput, suffix string) pulumi.StringOutput {
	return s.ApplyT(func(s string) string {
		return strings.TrimSuffix(s, suffix)
	}).(pulumi.StringOutput)
}