Created
February 18, 2015 21:41
-
-
Save Gustav-Simonsson/2b104de5f649224c68ae to your computer and use it in GitHub Desktop.
small cgo example
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 secp256k1 | |
/* | |
#include "./secp256k1/include/secp256k1.h" | |
*/ | |
import "C" | |
import () | |
func main() { | |
C.secp256k1_start() //takes 10ms to 100ms | |
C.secp256k1_stop() | |
} |
Author
Gustav-Simonsson
commented
Feb 18, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment