Skip to content

Instantly share code, notes, and snippets.

@jayhuang75
Last active October 25, 2021 16:01
Show Gist options
  • Select an option

  • Save jayhuang75/020d7bc53f12137d6a47a18043db7e05 to your computer and use it in GitHub Desktop.

Select an option

Save jayhuang75/020d7bc53f12137d6a47a18043db7e05 to your computer and use it in GitHub Desktop.
go-train-delay-run.go
func (a *App) Run(total int64) ([]DelayDataSet, error) {
// get the User email list
email_list, err := a.getUserEmailList(total)
if err != nil {
return nil, err
}
// processing the email get dataset
delayDataSet, err := a.processEmail(email_list, total)
if err != nil {
return nil, err
}
return delayDataSet, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment