Apply golint.
This commit is contained in:
parent
719bdc3e8a
commit
537384db47
@ -9,9 +9,9 @@ import (
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/patrickmn/go-cache"
|
||||
"github.com/satori/go.uuid"
|
||||
"github.com/yukimochi/Activity-Relay/KeyLoader"
|
||||
cache "github.com/patrickmn/go-cache"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
keyloader "github.com/yukimochi/Activity-Relay/KeyLoader"
|
||||
)
|
||||
|
||||
// PublicKey : Activity Certificate.
|
||||
|
@ -9,8 +9,8 @@ import (
|
||||
"github.com/go-redis/redis"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/yukimochi/Activity-Relay/KeyLoader"
|
||||
"github.com/yukimochi/Activity-Relay/State"
|
||||
keyloader "github.com/yukimochi/Activity-Relay/KeyLoader"
|
||||
state "github.com/yukimochi/Activity-Relay/State"
|
||||
)
|
||||
|
||||
var hostname *url.URL
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/yukimochi/Activity-Relay/State"
|
||||
state "github.com/yukimochi/Activity-Relay/State"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/RichardKnop/machinery/v1/tasks"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
"github.com/yukimochi/Activity-Relay/State"
|
||||
activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
state "github.com/yukimochi/Activity-Relay/State"
|
||||
)
|
||||
|
||||
func followCmdInit() *cobra.Command {
|
||||
|
@ -9,8 +9,8 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/RichardKnop/machinery/v1/tasks"
|
||||
"github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
"github.com/yukimochi/Activity-Relay/State"
|
||||
activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
state "github.com/yukimochi/Activity-Relay/State"
|
||||
)
|
||||
|
||||
func handleWebfinger(writer http.ResponseWriter, request *http.Request) {
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
"github.com/yukimochi/Activity-Relay/State"
|
||||
activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
state "github.com/yukimochi/Activity-Relay/State"
|
||||
)
|
||||
|
||||
const (
|
||||
|
8
main.go
8
main.go
@ -10,11 +10,11 @@ import (
|
||||
"github.com/RichardKnop/machinery/v1"
|
||||
"github.com/RichardKnop/machinery/v1/config"
|
||||
"github.com/go-redis/redis"
|
||||
"github.com/patrickmn/go-cache"
|
||||
cache "github.com/patrickmn/go-cache"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
"github.com/yukimochi/Activity-Relay/KeyLoader"
|
||||
"github.com/yukimochi/Activity-Relay/State"
|
||||
activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
keyloader "github.com/yukimochi/Activity-Relay/KeyLoader"
|
||||
state "github.com/yukimochi/Activity-Relay/State"
|
||||
)
|
||||
|
||||
// Actor : Relay's Actor
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/Songmu/go-httpdate"
|
||||
httpdate "github.com/Songmu/go-httpdate"
|
||||
"github.com/yukimochi/httpsig"
|
||||
)
|
||||
|
||||
|
@ -10,10 +10,10 @@ import (
|
||||
"github.com/RichardKnop/machinery/v1"
|
||||
"github.com/RichardKnop/machinery/v1/config"
|
||||
"github.com/go-redis/redis"
|
||||
"github.com/satori/go.uuid"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
"github.com/yukimochi/Activity-Relay/KeyLoader"
|
||||
activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
|
||||
keyloader "github.com/yukimochi/Activity-Relay/KeyLoader"
|
||||
)
|
||||
|
||||
// Actor : Relay's Actor
|
||||
|
Loading…
x
Reference in New Issue
Block a user