wow-cgo

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 5 Imported by: 0

README

wow-cgo

Installation & Setup
1. Clone the repository
git clone https://github.com/thechampagne/wow-cgo.git
2. Navigate to the root
cd wow-cgo
3. Build the project
make
4. Run test
make test
Example
#include <stdio.h>
#include <unistd.h>
#include "wow.h"

int main()
{
  wow_t* wow;
  spinner_t* spin;
  spinner_t s;
  char* arr[1];
  spin = spin_get(DOTS);
  wow = wow_init(spin, "Such Spins");
  wow_start(wow);
  sleep(2);
  wow_text(wow, "Very emojis");
  wow_spinner(wow, spin_get(HEARTS));
  sleep(2);
  arr[0] = "👍"; 
  s.frames = arr;
  s.frames_length = 1;
  wow_persist_with(wow, &s,"Wow!");
  wow_clean(wow);
  spinner_clean(spin);
}
References
License

This repo is released under the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL