// shouldInclude indicates whether the file should be included.
//
// NOTE: This does only basic parsing of tags.
shouldInclude indicates whether the file should be included.

This does only basic parsing of tags.
// shouldInclude indicates whether the file should be included . // // NOTE : This does only basic parsing of tags .
func (c *PackageConfig) shouldInclude(path string) (bool, error) {
	ctx := build.Default
	ctx.GOOS = c.GOOS
	ctx.GOARCH = c.GOARCH
	ctx.BuildTags = c.Tags
	return ctx.MatchFile(filepath.Dir(path), filepath.Base(path))
}
func ( c * PackageConfig ) shouldInclude ( path string ) ( bool , error ) { ctx := build . Default ctx . GOOS = c . GOOS ctx . GOARCH = c . GOARCH ctx . BuildTags = c . Tags return ctx . MatchFile ( filepath . Dir ( path ) , filepath . Base ( path ) ) }
shouldInclude indicates whether the file should be included.
shouldInclude indicates whether the file should be included .