MCPcopy Index your code
hub / github.com/cloudfoundry/cli / CreateRouteOptions

Function CreateRouteOptions

resources/options_resource.go:5–16  ·  view source on GitHub ↗
(options []string)

Source from the content-addressed store, hash-verified

3import "strings"
4
5func CreateRouteOptions(options []string) (map[string]*string, *string) {
6 routeOptions := map[string]*string{}
7 for _, option := range options {
8 key, value, found := strings.Cut(option, "=")
9 if found {
10 routeOptions[key] = &value
11 } else {
12 return routeOptions, &option
13 }
14 }
15 return routeOptions, nil
16}
17
18func RemoveRouteOptions(options []string) map[string]*string {
19 routeOptions := map[string]*string{}

Callers 3

ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected