A rust tool meant to convert a golang struct to a js type object.
Based on the new re-write the name of this library might change, Its now possible to have interpreters for all sorts of languages, not just Javascript based Languages.
```rs use jstypifygostruct;
fn main() {
let example = r#"
type Region struct {
Country string json:"country"
State string json:"state"
}
"#;
// converts to flow
let result = jstypifygostruct::transform(example, "flow")?;
// result will be
// // @flow
//export type Region = {country : string, state : string, }
// converts to typescript
let result = js_typify_gostruct::transform(example, "typescript")?;
println!("{}", result);
// result will be
//export interface Region = {country : string, state : string, } }
```
The examples folder contains various examples of how the library works & is to be used.
To run a specific example run the following command
eg
cargo run --example flow
cargo run --example typescript
TODO