go lang, cannot use columns (type []string) as type string in argument to string

i want to used type []string to ...string when call some function with variable parameters. in go lang code.

write below code:

func f(p ...string){
    // ...
}

correct code:
var p []string
f(p...)

error code:
var p []string
f(p)

it said:
cannot use columns (type []string) as type string in argument to string

Comments

Popular posts from this blog

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 3

Global can earn money wordpress blog Advertising Alliance Introduction–1 BidVertiser

pkrss发布