yet another simple and light-weight go binding for toxcore
Switch branches/tags
Nothing to show
Clone or download
Latest commit 420b613 Sep 15, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bots reconstruct codes Nov 9, 2017
tox reconstruct codes Nov 9, 2017
toxav reconstruct codes Nov 9, 2017
toxencryptsave reconstruct codes Nov 9, 2017
.gitignore Initial commit Jul 26, 2017
LICENSE Initial commit Jul 26, 2017
README.md reconstruct codes Nov 9, 2017

README.md

gtox

intro

Yet another simple and light-weight go binding for toxcore.

The echo-bot example will be a good tutorial on how to use this lib.

And of course, issues and prs are welcome.

binding detail

naming style

  1. Xxxx_xxxx_xx for types, funcs
  2. tox_, _get was stripped from the original name

the unsupported

what c-api/type wont be added:

  1. type Loglevel , tox_log_cb
  2. log_user_data , log_callback in Tox_Options

the unexported

what c-api/type wont be exported:

  1. all error type(error is processed in bindings by return one more error argument)
  2. type Loglevel, tox_log_cb
  3. log_user_data, log_callback in Tox_Options
  4. tox_options_set*, tox_options_get*(replaced by a wrapper struct which could access directly)

thread

no more than one API function can operate on a single instance at any given time. -- toxcore Only New, Del or CTox, Tox, e.g. those api made by me, are thread-safe.

toxav

av.Kill should always be called before tox.Kill