mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update github.com/hashicorp/hcl/v2 to v2.19.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
14
vendor/github.com/zclconf/go-cty/cty/ctystrings/normalize.go
generated
vendored
Normal file
14
vendor/github.com/zclconf/go-cty/cty/ctystrings/normalize.go
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
package ctystrings
|
||||
|
||||
import (
|
||||
"golang.org/x/text/unicode/norm"
|
||||
)
|
||||
|
||||
// Normalize applies NFC normalization to the given string, returning the
|
||||
// transformed string.
|
||||
//
|
||||
// This function achieves the same effect as wrapping a string in a value
|
||||
// using [cty.StringVal] and then unwrapping it again using [Value.AsString].
|
||||
func Normalize(str string) string {
|
||||
return norm.NFC.String(str)
|
||||
}
|
Reference in New Issue
Block a user