github.com/parquet-go/parquet-go@v0.20.0/internal/bytealg/count_purego.go (about) 1 //go:build purego || !amd64 2 3 package bytealg 4 5 import "bytes" 6 7 func Count(data []byte, value byte) int { 8 return bytes.Count(data, []byte{value}) 9 }