Skip to content

Added Value method to get reflect.Value from underlying entities#13

Open
dlahoza wants to merge 2 commits into
starlight-go:masterfrom
dlahoza:master
Open

Added Value method to get reflect.Value from underlying entities#13
dlahoza wants to merge 2 commits into
starlight-go:masterfrom
dlahoza:master

Conversation

@dlahoza
Copy link
Copy Markdown

@dlahoza dlahoza commented Jan 30, 2019

This will be helpful for working with values received by Go functions added to the globals.

globals := map[string: interface{}{
  "f": func Something(v inteface{}){
    //v will be *GoMap type
  },
  "v": map[string]interface{},
}

starlark
f(v)

@dlahoza
Copy link
Copy Markdown
Author

dlahoza commented Jan 31, 2019

Added small fix to FromDict

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.

1 participant