mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-19 22:41:40 -04:00
10 lines
260 B
Go
10 lines
260 B
Go
package client
|
|
|
|
import "strings"
|
|
|
|
// NormalizeLocation returns a normalized location string.
|
|
// Strings are converted to lower case and spaces are removed.
|
|
func NormalizeLocation(loc string) string {
|
|
return strings.ReplaceAll(strings.ToLower(loc), " ", "")
|
|
}
|