typify_gostruct 1.0.5

A rust tool meant to convert a golang struct to a type object of available languages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use typify_gostruct::Source;

fn main() -> Result<(), Vec<String>> {
    let example = r#"
    type Region struct {
    Country string `json:"country" binding:"required"`
    State string 
    }
    "#;
    let source = Source::new(example);
    let result = source.transform_to("flow")?;
    println!("{}", result);
    Ok(())
}