Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gob: name not registered for interface: "*main.Person" #124

Open
sujunbo opened this issue Jul 1, 2020 · 1 comment
Open

gob: name not registered for interface: "*main.Person" #124

sujunbo opened this issue Jul 1, 2020 · 1 comment

Comments

@sujunbo
Copy link

sujunbo commented Jul 1, 2020

err := dataCache.LoadFile("./data")
fmt.Println(err)

Caching object data to a file and then loading cached data from a file failed. Is it not supported to load object data from a file?

@jszwec
Copy link

jszwec commented Jul 30, 2020

func init() {
  gob.Register(Person{})
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants