Is there a way to declare an argument as "optional" in the Go programming language?
Example of what I mean:
func doSomething(foo string, bar int) bool {
    //...
}
I want the parameter bar to be optional and default to 0 if nothing is passed through.
doSomething("foo")
would be the same as
doSomething("foo",0)
I'm unable to find anything about this matter in the official documentation about functions.
 
     
    