c-snappy icon indicating copy to clipboard operation
c-snappy copied to clipboard

Still need to import C to consume package?

Open matthewmueller opened this issue 5 years ago • 1 comments

Hey there, I'm just learning about cgo from your terrific blog post on the topic.

I'm wondering if this line in the readme is still relevant?

To use in your project you need to import the package and set appropriate cgo flag directives:

It seems like you can just use Go after go get-ting.

matthewmueller avatar Nov 02 '20 23:11 matthewmueller

Maybe this is true, unsure? Feel free to try it out, demonstrate with a screencast this is indeed true, and send a PR with the change.

Note that this package is not maintained any more since CockroachDB has stopped using c-snappy.

knz avatar Nov 10 '20 12:11 knz