Last active
July 11, 2020 18:34
-
-
Save InnovativeInventor/893bfcda203ceea36cc94d8137791bdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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