diff --git a/odin/src/main.odin b/odin/src/main.odin index 788488b..abb26fc 100644 --- a/odin/src/main.odin +++ b/odin/src/main.odin @@ -3,13 +3,18 @@ package test_project import "core:os" import "core:fmt" import "core:math" +import "core:reflect" + +test_t :: struct +{ + x: int `x coordinate and stuff`, + y: int `y coordinate you know` +} main :: proc() { - test: string = "heloo"; - length: int = len( test ); - digits: int = int( math.log10( f32( length ) ) ); + tags := reflect.struct_field_tags( test_t ); - digits = 3; - fmt.printfln( "% *d : %s", digits, length, test ); + fmt.println( typeid_of( type_of( tags ) ) ) + fmt.println( tags ); }