structure of anonymous function golang