mirror of
https://github.com/sigmasternchen/threadule
synced 2025-03-15 08:09:01 +00:00
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:
commit
75f7364447
4 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ import (
|
||||||
"threadule/backend/internal/config"
|
"threadule/backend/internal/config"
|
||||||
"threadule/backend/internal/data"
|
"threadule/backend/internal/data"
|
||||||
"threadule/backend/internal/logic"
|
"threadule/backend/internal/logic"
|
||||||
router "threadule/backend/internal/router"
|
"threadule/backend/internal/router"
|
||||||
"threadule/backend/internal/web"
|
"threadule/backend/internal/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package logic
|
package logic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/dghubble/go-twitter/twitter"
|
||||||
|
"github.com/dghubble/oauth1"
|
||||||
|
twitterOAuth "github.com/dghubble/oauth1/twitter"
|
||||||
"net/url"
|
"net/url"
|
||||||
"threadule/backend/internal/data/models"
|
"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) {
|
func (l *Logic) sendTweet(client *twitter.Client, tweet *models.Tweet, prevId int64) (int64, error) {
|
||||||
status, _, err := client.Statuses.Update(
|
status, _, err := client.Statuses.Update(
|
||||||
|
|
|
@ -7,6 +7,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func StartServer(ctx *app.Context, handler http.Handler) error {
|
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)
|
return http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", ctx.Config.Web.Port), handler)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue