| 1 | module main |
| 2 | |
| 3 | interface Value {} |
| 4 | |
| 5 | struct CreateRegionData { |
| 6 | name string |
| 7 | currency_code string |
| 8 | tax_rate f32 |
| 9 | tax_code string @[omitempty] |
| 10 | countries []string |
| 11 | includes_tax bool @[omitempty] |
| 12 | } |
| 13 | |
| 14 | fn test_main() { |
| 15 | rd := CreateRegionData{} |
| 16 | id := 'bro' |
| 17 | the_array := [Value(id), rd.name] |
| 18 | println(the_array) |
| 19 | assert '${the_array}' == "[Value('bro'), Value('')]" |
| 20 | } |
| 21 |