MCPcopy Create free account
hub / github.com/Sma1lboy/RegTool / StringToRegion

Function StringToRegion

source/structs/structs.go:11–22  ·  view source on GitHub ↗
(region string)

Source from the content-addressed store, hash-verified

9)
10
11func StringToRegion(region string) Region {
12 switch region {
13 case "cn":
14 return CN
15 case "us":
16 return US
17 case "eu":
18 return EU
19 default:
20 return ""
21 }
22}
23
24// RegistrySources is a map of regions to registry regions
25type RegistrySources map[Region]RegistryRegionSources

Callers 2

UpdateRegistryFunction · 0.92
ChangeAllRegistryFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected