1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
pub use golang_type_decl_core::*; pub use golang_type_decl_macro; #[macro_export] macro_rules! gen_json_struct { ($code:literal) => { golang_type_decl_macro::gen_json_struct!(code = $code); }; ($code:literal, nth = $nth:literal) => { golang_type_decl_macro::gen_json_struct!(code = $code, nth = $nth); }; } #[macro_export] macro_rules! gen_json_struct_from_file { ($path:literal) => { golang_type_decl_macro::gen_json_struct!(path = $path); }; ($path:literal, nth = $nth:literal) => { golang_type_decl_macro::gen_json_struct!(path = $path, nth = $nth); }; }