DataType to String

julia> module Foo
       struct Bar end
       end
Main.Foo

julia> typeof(Foo.Bar())
Main.Foo.Bar

julia> string(nameof(typeof(Foo.Bar())))
"Bar"
1 Like