Library for random success/fail emoji
- Install the package
zig fetch --save git+https://github.com/kirillgrachoff/ciface
- Add the package in
build.zig
const ciface = b.dependency("ciface", .{});
exe.root_module.addImport("ciface", ciface.module("ciface"));
- Import in your project
const ciface = @import("ciface");
var rand: std.Random = ...;
ciface.getSuccess(rand) // -> Happy face
ciface.getFail(rand) // -> Sad face
ciface.faces.success // happy faces
ciface.faces.fail // sad faces
./ciface
This binary supports NO_COLOR