mirror of https://github.com/status-im/fathom.git
Run goimports on all files in the project to format imports
This commit is contained in:
parent
ec6d3e004b
commit
7c0cfd83a0
|
@ -2,12 +2,13 @@ package api
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/dannyvankooten/ana/db"
|
||||
"github.com/dannyvankooten/ana/models"
|
||||
"github.com/gorilla/sessions"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"net/http"
|
||||
"os"
|
||||
)
|
||||
|
||||
type Login struct {
|
||||
|
|
|
@ -2,11 +2,12 @@ package api
|
|||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/dannyvankooten/ana/db"
|
||||
"github.com/dannyvankooten/ana/models"
|
||||
"github.com/mssola/user_agent"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func getRequestIp(r *http.Request) string {
|
||||
|
|
|
@ -2,8 +2,9 @@ package api
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/dannyvankooten/ana/count"
|
||||
"net/http"
|
||||
|
||||
"github.com/dannyvankooten/ana/count"
|
||||
)
|
||||
|
||||
// URL: /api/countries
|
||||
|
|
|
@ -2,10 +2,11 @@ package api
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/dannyvankooten/ana/count"
|
||||
"github.com/dannyvankooten/ana/db"
|
||||
"github.com/dannyvankooten/ana/models"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// URL: /api/pageviews
|
||||
|
|
|
@ -2,9 +2,10 @@ package api
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/dannyvankooten/ana/count"
|
||||
"github.com/dannyvankooten/ana/db"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// URL: /api/visitors/count
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
package commands
|
||||
|
||||
import (
|
||||
"github.com/dannyvankooten/ana/api"
|
||||
"github.com/gorilla/handlers"
|
||||
"github.com/gorilla/mux"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/dannyvankooten/ana/api"
|
||||
"github.com/gorilla/handlers"
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
func startServer() {
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
package commands
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/dannyvankooten/ana/db"
|
||||
"github.com/dannyvankooten/ana/models"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"log"
|
||||
)
|
||||
|
||||
func createUser() {
|
||||
|
|
|
@ -2,10 +2,10 @@ package db
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/Pallinder/go-randomdata"
|
||||
"github.com/dannyvankooten/ana/models"
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
"github.com/dannyvankooten/ana/models"
|
||||
)
|
||||
|
||||
var browserNames = []string{
|
||||
|
|
Loading…
Reference in New Issue