0
Do I necessarily need to deal with Sponse for the function to be executed? As it stands it says that the variable "tweet" was declared but not used, but as it is a POST request, I see no point in dealing with the answer.
//tokens auth
httpClient := config.Client(oauth1.NoContext, token)
api := twitter.NewClient(httpClient)
tweet, resp, err := api.Statuses.Update("tweet teste", nil)
//fim
In the documentation there are no practical examples, only modes of use.
https://pkg.go.dev/github.com/dghubble/go-twitter/twitter#Statusservice.Update