Move packages out of dirs

Fixes #2
This commit is contained in:
Daan Sprenkels 2019-09-15 17:43:09 +02:00
parent 66bbac8a8a
commit b7a4b1fee8
5 changed files with 8 additions and 8 deletions

View File

@ -9,9 +9,9 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitea.hashru.nl/dsprenkels/rushlink/internal/db" "gitea.hashru.nl/dsprenkels/rushlink/db"
"gitea.hashru.nl/dsprenkels/rushlink/internal/handlers" "gitea.hashru.nl/dsprenkels/rushlink/handlers"
"gitea.hashru.nl/dsprenkels/rushlink/internal/metrics" "gitea.hashru.nl/dsprenkels/rushlink/metrics"
) )
type ParsedArguments struct { type ParsedArguments struct {

View File

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
bolt "go.etcd.io/bbolt" bolt "go.etcd.io/bbolt"
"gitea.hashru.nl/dsprenkels/rushlink/pkg/gobmarsh" "gitea.hashru.nl/dsprenkels/rushlink/gobmarsh"
) )
var DB *bolt.DB var DB *bolt.DB

View File

@ -2,7 +2,7 @@ package handlers
//go:generate go get github.com/go-bindata/go-bindata //go:generate go get github.com/go-bindata/go-bindata
//go:generate go get -u github.com/go-bindata/go-bindata/... //go:generate go get -u github.com/go-bindata/go-bindata/...
//go:generate go-bindata -pkg $GOPACKAGE -prefix ../../assets ../../assets/... //go:generate go-bindata -pkg $GOPACKAGE -prefix ../assets ../assets/...
import ( import (
"bytes" "bytes"
@ -23,8 +23,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
bolt "go.etcd.io/bbolt" bolt "go.etcd.io/bbolt"
"gitea.hashru.nl/dsprenkels/rushlink/internal/db" "gitea.hashru.nl/dsprenkels/rushlink/db"
"gitea.hashru.nl/dsprenkels/rushlink/pkg/gobmarsh" "gitea.hashru.nl/dsprenkels/rushlink/gobmarsh"
) )
type PasteType int type PasteType int

View File

@ -12,7 +12,7 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"
bolt "go.etcd.io/bbolt" bolt "go.etcd.io/bbolt"
"gitea.hashru.nl/dsprenkels/rushlink/internal/db" "gitea.hashru.nl/dsprenkels/rushlink/db"
) )
const ( const (