Merge pull request #1 from l1f/main

style(backend): the code format and the imports in one or the other p…
This commit is contained in:
overflowerror 2021-12-19 19:35:28 +01:00 committed by GitHub
commit 75f7364447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ import (
"threadule/backend/internal/config"
"threadule/backend/internal/data"
"threadule/backend/internal/logic"
router "threadule/backend/internal/router"
"threadule/backend/internal/router"
"threadule/backend/internal/web"
)

View file

@ -1,12 +1,12 @@
package logic
import (
"github.com/dghubble/go-twitter/twitter"
"github.com/dghubble/oauth1"
twitterOAuth "github.com/dghubble/oauth1/twitter"
"net/url"
"threadule/backend/internal/data/models"
)
import "github.com/dghubble/oauth1"
import "github.com/dghubble/go-twitter/twitter"
import twitterOAuth "github.com/dghubble/oauth1/twitter"
func (l *Logic) sendTweet(client *twitter.Client, tweet *models.Tweet, prevId int64) (int64, error) {
status, _, err := client.Statuses.Update(

View file

@ -7,6 +7,6 @@ import (
)
func StartServer(ctx *app.Context, handler http.Handler) error {
ctx.Log.Info("startinhg web server")
ctx.Log.Info("starting web server")
return http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", ctx.Config.Web.Port), handler)
}