With returns a new manager with added alternating key values. Note: manager is immutable. With Creates a new instance.
(k contract.Keyer, parts ...string)
| 78 | // With returns a new manager with added alternating key values. |
| 79 | // Note: manager is immutable. With Creates a new instance. |
| 80 | func With(k contract.Keyer, parts ...string) manager { |
| 81 | km := manager{} |
| 82 | parts = append(k.Spread(), parts...) |
| 83 | return km.With(parts...) |
| 84 | } |
| 85 | |
| 86 | // SpreadInterface likes Spread, but returns a slice of interface{} |
| 87 | func SpreadInterface(k contract.Keyer) []interface{} { |