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

Use builtin map instead of home-built #4

Closed
md2perpe opened this issue Sep 4, 2016 · 1 comment
Closed

Use builtin map instead of home-built #4

md2perpe opened this issue Sep 4, 2016 · 1 comment

Comments

@md2perpe
Copy link

md2perpe commented Sep 4, 2016

As I understand it, the order of FileList elements in the slice is not of importance. Therefore, instead of a slice of the struct FileList (containing Key and Value), you could use a map[string] string.

https://gobyexample.com/maps
https://blog.golang.org/go-maps-in-action

xuri added a commit that referenced this issue Sep 5, 2016
@xuri
Copy link
Member

xuri commented Sep 5, 2016

Thank you so much for your suggestion. I have to update package use map[string]string instead of []FileList. In addition, I intend to use the object-oriented approach reconstruction package.

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