Answer the question
In order to leave comments, you need to log in
How to pass a struct to another package?
Let's say I have db.Add(u) where u is of type User. In this function (db.Add), I want to save the structure in the map in order to use it later in this package (create a map with this type). I assume that it is possible to do this (the same gorm uses something similar). I'm just trying to implement a relational database in RAM (without sql, etc. immediately orm that stores everything in RAM for the cache will be the most)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question