Put Go stuff in the /src folder

This commit is contained in:
Ben Visness 2021-03-10 21:39:24 -06:00
parent 2280bc4cf6
commit 45763de9e6
16 changed files with 25 additions and 25 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
config/config.go
src/config/config.go
.vscode

10
main.go
View File

@ -1,10 +0,0 @@
package main
import (
_ "git.handmade.network/hmn/hmn/migration"
"git.handmade.network/hmn/hmn/website"
)
func main() {
website.WebsiteCommand.Execute()
}

View File

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

View File

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

10
src/main.go Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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