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" "net/url"
"time" "time"
"github.com/patrickmn/go-cache" cache "github.com/patrickmn/go-cache"
"github.com/satori/go.uuid" uuid "github.com/satori/go.uuid"
"github.com/yukimochi/Activity-Relay/KeyLoader" keyloader "github.com/yukimochi/Activity-Relay/KeyLoader"
) )
// PublicKey : Activity Certificate. // PublicKey : Activity Certificate.

View File

@ -9,8 +9,8 @@ import (
"github.com/go-redis/redis" "github.com/go-redis/redis"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/yukimochi/Activity-Relay/KeyLoader" keyloader "github.com/yukimochi/Activity-Relay/KeyLoader"
"github.com/yukimochi/Activity-Relay/State" state "github.com/yukimochi/Activity-Relay/State"
) )
var hostname *url.URL var hostname *url.URL

View File

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

View File

@ -8,8 +8,8 @@ import (
"github.com/RichardKnop/machinery/v1/tasks" "github.com/RichardKnop/machinery/v1/tasks"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/yukimochi/Activity-Relay/ActivityPub" activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
"github.com/yukimochi/Activity-Relay/State" state "github.com/yukimochi/Activity-Relay/State"
) )
func followCmdInit() *cobra.Command { func followCmdInit() *cobra.Command {

View File

@ -9,8 +9,8 @@ import (
"os" "os"
"github.com/RichardKnop/machinery/v1/tasks" "github.com/RichardKnop/machinery/v1/tasks"
"github.com/yukimochi/Activity-Relay/ActivityPub" activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
"github.com/yukimochi/Activity-Relay/State" state "github.com/yukimochi/Activity-Relay/State"
) )
func handleWebfinger(writer http.ResponseWriter, request *http.Request) { func handleWebfinger(writer http.ResponseWriter, request *http.Request) {

View File

@ -11,8 +11,8 @@ import (
"strconv" "strconv"
"testing" "testing"
"github.com/yukimochi/Activity-Relay/ActivityPub" activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
"github.com/yukimochi/Activity-Relay/State" state "github.com/yukimochi/Activity-Relay/State"
) )
const ( const (

View File

@ -10,11 +10,11 @@ import (
"github.com/RichardKnop/machinery/v1" "github.com/RichardKnop/machinery/v1"
"github.com/RichardKnop/machinery/v1/config" "github.com/RichardKnop/machinery/v1/config"
"github.com/go-redis/redis" "github.com/go-redis/redis"
"github.com/patrickmn/go-cache" cache "github.com/patrickmn/go-cache"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/yukimochi/Activity-Relay/ActivityPub" activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
"github.com/yukimochi/Activity-Relay/KeyLoader" keyloader "github.com/yukimochi/Activity-Relay/KeyLoader"
"github.com/yukimochi/Activity-Relay/State" state "github.com/yukimochi/Activity-Relay/State"
) )
// Actor : Relay's Actor // Actor : Relay's Actor

View File

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

View File

@ -10,10 +10,10 @@ import (
"github.com/RichardKnop/machinery/v1" "github.com/RichardKnop/machinery/v1"
"github.com/RichardKnop/machinery/v1/config" "github.com/RichardKnop/machinery/v1/config"
"github.com/go-redis/redis" "github.com/go-redis/redis"
"github.com/satori/go.uuid" uuid "github.com/satori/go.uuid"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/yukimochi/Activity-Relay/ActivityPub" activitypub "github.com/yukimochi/Activity-Relay/ActivityPub"
"github.com/yukimochi/Activity-Relay/KeyLoader" keyloader "github.com/yukimochi/Activity-Relay/KeyLoader"
) )
// Actor : Relay's Actor // Actor : Relay's Actor