Put Go stuff in the /src folder
This commit is contained in:
parent
2280bc4cf6
commit
45763de9e6
|
@ -1,2 +1,2 @@
|
|||
config/config.go
|
||||
src/config/config.go
|
||||
.vscode
|
||||
|
|
10
main.go
10
main.go
|
@ -1,10 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
_ "git.handmade.network/hmn/hmn/migration"
|
||||
"git.handmade.network/hmn/hmn/website"
|
||||
)
|
||||
|
||||
func main() {
|
||||
website.WebsiteCommand.Execute()
|
||||
}
|
|
@ -3,8 +3,8 @@ package db
|
|||
import (
|
||||
"context"
|
||||
|
||||
"git.handmade.network/hmn/hmn/config"
|
||||
"git.handmade.network/hmn/hmn/oops"
|
||||
"git.handmade.network/hmn/hmn/src/config"
|
||||
"git.handmade.network/hmn/hmn/src/oops"
|
||||
"github.com/jackc/pgx/v4"
|
||||
"github.com/jackc/pgx/v4/pgxpool"
|
||||
)
|
|
@ -7,8 +7,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.handmade.network/hmn/hmn/color"
|
||||
"git.handmade.network/hmn/hmn/oops"
|
||||
"git.handmade.network/hmn/hmn/src/color"
|
||||
"git.handmade.network/hmn/hmn/src/oops"
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
|
@ -0,0 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
_ "git.handmade.network/hmn/hmn/src/migration"
|
||||
"git.handmade.network/hmn/hmn/src/website"
|
||||
)
|
||||
|
||||
func main() {
|
||||
website.WebsiteCommand.Execute()
|
||||
}
|
|
@ -10,10 +10,10 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"git.handmade.network/hmn/hmn/db"
|
||||
"git.handmade.network/hmn/hmn/migration/migrations"
|
||||
"git.handmade.network/hmn/hmn/migration/types"
|
||||
"git.handmade.network/hmn/hmn/website"
|
||||
"git.handmade.network/hmn/hmn/src/db"
|
||||
"git.handmade.network/hmn/hmn/src/migration/migrations"
|
||||
"git.handmade.network/hmn/hmn/src/migration/types"
|
||||
"git.handmade.network/hmn/hmn/src/website"
|
||||
"github.com/jackc/pgx/v4"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
|
@ -3,7 +3,7 @@ package migrations
|
|||
import (
|
||||
"time"
|
||||
|
||||
"git.handmade.network/hmn/hmn/migration/types"
|
||||
"git.handmade.network/hmn/hmn/src/migration/types"
|
||||
"github.com/jackc/pgx/v4"
|
||||
)
|
||||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"time"
|
||||
|
||||
"git.handmade.network/hmn/hmn/migration/types"
|
||||
"git.handmade.network/hmn/hmn/src/migration/types"
|
||||
"github.com/jackc/pgx/v4"
|
||||
)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package migrations
|
||||
|
||||
import "git.handmade.network/hmn/hmn/migration/types"
|
||||
import "git.handmade.network/hmn/hmn/src/migration/types"
|
||||
|
||||
var All map[types.MigrationVersion]types.Migration = make(map[types.MigrationVersion]types.Migration)
|
||||
|
|
@ -9,9 +9,9 @@ import (
|
|||
"os/signal"
|
||||
"time"
|
||||
|
||||
"git.handmade.network/hmn/hmn/config"
|
||||
"git.handmade.network/hmn/hmn/db"
|
||||
"git.handmade.network/hmn/hmn/logging"
|
||||
"git.handmade.network/hmn/hmn/src/config"
|
||||
"git.handmade.network/hmn/hmn/src/db"
|
||||
"git.handmade.network/hmn/hmn/src/logging"
|
||||
"github.com/julienschmidt/httprouter"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
Loading…
Reference in New Issue