Created
July 10, 2014 16:39
-
-
Save r9y9/a8f62b486bdc611b6e76 to your computer and use it in GitHub Desktop.
Parsing pkl in Go
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" | |
pkl "github.com/dgryski/og-rek" | |
"log" | |
"os" | |
) | |
func main() { | |
file, err := os.Open("./model/gv_gmm.pkl") | |
if err != nil { | |
log.Fatal(err) | |
} | |
d := pkl.NewDecoder(file) | |
result, perr := d.Decode() | |
if perr != nil { | |
log.Fatal(perr) | |
} | |
fmt.Println(result) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment