(ks ...string)
| 17 | } |
| 18 | |
| 19 | func TargetsOf(ks ...string) []*Target { |
| 20 | vs := make([]*Target, 0, len(ks)) |
| 21 | for _, k := range ks { |
| 22 | vs = append(vs, TargetOf(k)) |
| 23 | } |
| 24 | return vs |
| 25 | } |
| 26 | func TargetOf(key string) *Target { |
| 27 | index := strings.Index(key, ":") |
| 28 | if index > 0 { |
nothing calls this directly
no test coverage detected