Apply golint.

This commit is contained in:
Naoki Kosaka 2018-12-28 12:50:30 +09:00
parent 719bdc3e8a
commit 537384db47
9 changed files with 20 additions and 20 deletions

View File

@ -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.

View File

@ -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

View File

@ -7,7 +7,7 @@ import (
"os"
"github.com/spf13/cobra"
"github.com/yukimochi/Activity-Relay/State"
state "github.com/yukimochi/Activity-Relay/State"
)
const (

View File

@ -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 {

View File

@ -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) {

View File

@ -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 (

View File

@ -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

View File

@ -10,7 +10,7 @@ import (
"net/http"
"time"
"github.com/Songmu/go-httpdate"
httpdate "github.com/Songmu/go-httpdate"
"github.com/yukimochi/httpsig"
)

View File

@ -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