1. The scenario goes something like this: you need to get the number of new users in a certain period of time, which I plan to do with Ctrip. The preliminary code is similar to the following:
fansNum := make(chan string)
go fans.GetFansIncrementNum(allFansIds, todayStart, todayEnd, fansNum)
the statistics are returned to the upstream through fansNum, but what if there is an error in obtaining the number of users by fans.GetFansIncrementNum? I can think of a process: fansNum is defined as a make (chan map [string] interface {}). Add an error code to this map, and the upstream uses the error code to decide what to do with it. Excuse me, if there is an error in Ctrip, how does it return to the upstream?