i opened an issue and it took a minute to close it. but i don’t get it. there is a difference between what fmt.* does and what the compiler says. (edit: to be clear: it’s a bug in fmt, not the compiler!) i call that a bug and i have to work around it now…
well here it is: (Sorry, new users can only put 2 links in a post. great work on that one, guys! it implements the github issue which has more then 2 links and thats my fault. another workaround needed… sigh)
You’re passing tes() an []interface{}{"test"} (the “atype”). This get’s wrapped in another []interface{} due to the ...interface{} parameter type. Hence s in tes() becomes an []interface{} containing an []interface{} containing a string.
(You’re also getting lost in a twisty maze of interface{}s which is not a good idea, especially when starting out. Try to use narrower types.)