String returns the string representation of the options, joining them with '/'.
()
| 50 | |
| 51 | // String returns the string representation of the options, joining them with '/'. |
| 52 | func (o OptionsBuilder) String() string { |
| 53 | formatted := make([]string, 0, len(o)) |
| 54 | |
| 55 | for k, v := range o { |
| 56 | formatted = append(formatted, fmt.Sprintf("%s:%s", k, v.String())) |
| 57 | } |
| 58 | |
| 59 | return strings.Join(formatted, "/") |
| 60 | } |