Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a8bd905

Browse filesBrowse files
authored
Merge branch 'develop' into feature/contribution-guide-fix
2 parents 277e0c5 + 4f79059 commit a8bd905
Copy full SHA for a8bd905

File tree

1 file changed

+6
-1
lines changed
Filter options

1 file changed

+6
-1
lines changed

‎binder.go

Copy file name to clipboardExpand all lines: binder.go
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@ var (
153153

154154
PointerBinder = Binder{
155155
Bind: func(params *Params, name string, typ reflect.Type) reflect.Value {
156-
return Bind(params, name, typ.Elem()).Addr()
156+
v := Bind(params, name, typ.Elem())
157+
if v.CanAddr() {
158+
return v.Addr()
159+
}
160+
161+
return v
157162
},
158163
Unbind: func(output map[string]string, name string, val interface{}) {
159164
Unbind(output, name, reflect.ValueOf(val).Elem().Interface())

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.