You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% go run main.go
panic: [Error (where: execution) in <string> | Line 1 Col 14 near 'nilFunc'] Calling a function using an invalid parameter
goroutine 1 [running]:
main.main()
/Users/mark/temp/pt/main.go:19 +0x167
exit status 2
The text was updated successfully, but these errors were encountered:
Hi,
What's the correct way for me to call a function, passing nil to one or more parameters? This example throws an error, when I'd expect it to work:
Error:
The text was updated successfully, but these errors were encountered: