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

Infinite recursion on circular structure #81

Open
skabbes opened this issue Feb 10, 2018 · 0 comments
Open

Infinite recursion on circular structure #81

skabbes opened this issue Feb 10, 2018 · 0 comments

Comments

@skabbes
Copy link

skabbes commented Feb 10, 2018

I am working on a library to generically parse NSKeyedArchiver file formats. A very simply recursive map puts go-spew into an infinite loop.

a := map[string]interface{}{}
a["circular"] = map[string]interface{}{
	"a": a,
}

spew.Dump(a)
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

1 participant