Skip to content

Instantly share code, notes, and snippets.

@myokoym
Created February 20, 2018 09:30
Show Gist options
  • Save myokoym/6c3318d58cda326064b47933e20e02f1 to your computer and use it in GitHub Desktop.
Save myokoym/6c3318d58cda326064b47933e20e02f1 to your computer and use it in GitHub Desktop.
WIP
import times
echo getLocalTime(getTime())
{.passC: gorge("pkg-config --cflags groonga").}
{.passL: gorge("pkg-config --libs groonga").}
proc version(): cstring {.header: "<groonga/groonga.h>", importc: "grn_get_version"}
proc package_label(): cstring {.header: "<groonga/groonga.h>", importc: "grn_get_package_label"}
echo version()
echo package_label()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment