(platforms []*ast.Platform)
| 606 | } |
| 607 | |
| 608 | func shouldRunOnCurrentPlatform(platforms []*ast.Platform) bool { |
| 609 | if len(platforms) == 0 { |
| 610 | return true |
| 611 | } |
| 612 | for _, p := range platforms { |
| 613 | if (p.OS == "" || p.OS == runtime.GOOS) && (p.Arch == "" || p.Arch == runtime.GOARCH) { |
| 614 | return true |
| 615 | } |
| 616 | } |
| 617 | return false |
| 618 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…