terraform-provider-stackitp.../stackit/internal/utils/strings.go
Marcel S. Henselin c15f21a16d
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 10s
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 30s
CI Workflow / CI run build and linting (pull_request) Failing after 10s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / CI run tests (pull_request) Failing after 10m19s
fix: fix linting errors and test
2026-03-02 09:14:13 +01:00

12 lines
206 B
Go

package utils
func RemoveQuotes(src string) string {
var res string
if src != "" && src[0] == '"' {
res = src[1:]
}
if res != "" && res[len(res)-1] == '"' {
res = res[:len(res)-1]
}
return res
}