()
| 126 | } |
| 127 | |
| 128 | func (r *Route) FormattedOptions() string { |
| 129 | var routeOpts = []string{} |
| 130 | formattedOptions := "" |
| 131 | if r.Options != nil && len(r.Options) > 0 { |
| 132 | for optKey, optVal := range r.Options { |
| 133 | routeOpts = append(routeOpts, optKey+"="+*optVal) |
| 134 | } |
| 135 | formattedOptions = " {" + strings.Join(routeOpts, ", ") + "}" |
| 136 | } |
| 137 | return formattedOptions |
| 138 | } |
no outgoing calls
no test coverage detected