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

tiltfile: add map[string]string unpacker #3750

Merged
merged 2 commits into from Sep 3, 2020
Merged

Conversation

landism
Copy link
Member

@landism landism commented Sep 3, 2020

Having to access the value via .Map is a little clumsy, but I'm not sure there's a way to avoid that.

@landism landism requested a review from nicks September 3, 2020 17:11
"go.starlark.net/starlark"
)

type StringStringMap struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you considered doing this as

type StringStringMap map[string]string

?

i think we only need the wrapper struct if we want to treat the "unset" value differently

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, duh

@landism landism merged commit ece95f6 into master Sep 3, 2020
@landism landism deleted the matt/starlark_map_unpacker branch September 3, 2020 17:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants