mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-24 10:21:20 -05:00
9 lines
260 B
Go
9 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), " ", "")
|
|
}
|