How to solve “too many arguments to return” issue

You need to specify what you will return after specifying the input parameters, this is not python.

This:

func Print(DATA []TD, include string, exclude []string, str string) {

Should be:

func Print(DATA []TD, include string, exclude []string, str string) string {

Recommended reads:

  • http://golang.org/doc/effective_go.html#multiple-returns

  • http://golang.org/doc/effective_go.html#named-results

Or even all of effective go

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)