rewrite gnote-plugin using go lang