command
Version:
v0.1.7
Opens a new window with list of versions in this module.
Published: Aug 18, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
tgun
here we harness go networking in a c program.
at its most basic, fetching a url
compile with gcc -o example_error example_c/example_error.c -ltgun
#include <tgun.h>
// example usage
int using_tgun(char *url){
char* b = get_url(url);
if (!b) {
// oops, theres an error string waiting
printf("err: %s\n", tgunerr());
return 1;
}
printf("%s\n", b); // print resp (its null terminated)
free(b); // free when finished
return 0;
}
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.