JSTYPIFYGOSTRUCT

A rust tool meant to convert a golang struct to a js type object.

How to use

```rs use jstypifygostruct;

fn main() { let example = r#" type Region struct { Country string json:"country" binding:"required" State string json:"state" binding:"required" } "#; // converts to flow match jstypifygostruct::transform(example.tostring(), interpreter::TransformTo::Flow) { Ok(results) => println!("{}", results); // prints out type Region = { country:string; state:string; }; Err(parseerrors) => println!("{:?}", parse_errors); }

// converts to typescript
match js_typify_gostruct::transform(example.to_string(), interpreter::TransformTo::Typescript) {
    Ok(results) => println!("{}", results); // prints out interface Region { country:string; state:string; };
    Err(parse_errors) => println!("{:?}", parse_errors);
}

}

```