Skip to content

Instantly share code, notes, and snippets.

@InnovativeInventor
Last active July 11, 2020 18:34
Show Gist options
  • Save InnovativeInventor/893bfcda203ceea36cc94d8137791bdd to your computer and use it in GitHub Desktop.
Save InnovativeInventor/893bfcda203ceea36cc94d8137791bdd to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"encoding/json"
"io/ioutil"
"github.com/willf/bloom"
)
func main() {
var bloomfilter bloom.BloomFilter
file, _ := ioutil.ReadFile("a.json")
json.Unmarshal(file, bloomfilter)
fmt.Println(bloomfilter.TestString("nulltest"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment