I have a struct defined as follows:
julia> struct test
test1::Int64
test2::Float64
end
I want to be able to see the names of the attributes in the struct as well as the type. What is the most straight forward way to do this? I know I can do:
julia> t = test(1,1.0)
test(1, 1.0)
julia> fieldnames(typeof(t))
(:test1, :test2)
but I would like to see the attribute name and type together.