(other ID)
| 138 | } |
| 139 | |
| 140 | func (p pattern) ExpandID(other ID) (ID, error) { |
| 141 | val, err := replace1(string(p), other.String()) |
| 142 | if err != nil { |
| 143 | return nil, err |
| 144 | } |
| 145 | return id(val), err |
| 146 | } |
| 147 | |
| 148 | func (p pattern) ExpandPattern(other Pattern) (Pattern, error) { |
| 149 | val, err := replace1(string(p), other.String()) |