golangify 0.1.0

published at 01.04.2024 this crate brings familiar flavor for newcomers from golang
Documentation
golangify-0.1.0 has been yanked.

#golangify golangify macro would turn standard rust Result<T,E> into simple, familiar and convenient tuple (E,T);

Example usage

use golangify::*;

fn main() {
let (res, err) = golangify!(some_func());
if err != nil {
println!("{:?}", err);
}
}

fn some_func() -> Result<u32, &'static str> {
Err("42")
}

01.04.2024