is super bad bythaway, why do you need to inspect the underlying type?
What's the point?
I was trying to create a toy nosql database where the storage layer handles the storage of the data. That is why I had to use interface{} as I do allow storing numbers, floats, strings (ascii only though) and nested json. Everything was working fine until I decided to add persistence to the database. To persist the data I am trying to use gob which demands the type of the data to deserialise (rightly so though).4
Обсуждают сегодня