I have the following code:
import "fmt"
func main() {
P("1","2","3",0)
}
func P(prefix string,a ...interface{}){
fmt.Println(prefix,a)
}
The result is:
1 [2 3 0]
But I would like to have one of the following results instead:
1 2 3 0
[1 2 3 0]
In other words: all arguments are of same importance, so no argument should be handled in a special way.