Put project modules under pkg directory

This commit is contained in:
Andrey Chervyakov 2021-04-12 17:17:09 +06:00
parent f4684be37d
commit e1516e450b
13 changed files with 7 additions and 7 deletions

View file

@ -1,9 +1,9 @@
package main
import (
"cgnolink"
"cgnolink/database"
appserver "cgnolink/server"
"cgnolink/pkg/cgnolink"
"cgnolink/pkg/cgnolink/database"
appserver "cgnolink/pkg/cgnolink/server"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"os"

View file

@ -1,7 +1,7 @@
package link
import (
"cgnolink/database"
"cgnolink/pkg/cgnolink/database"
"context"
"errors"
"github.com/jackc/pgtype"

View file

@ -1,7 +1,7 @@
package link
import (
apperrors "cgnolink/errors"
apperrors "cgnolink/pkg/cgnolink/errors"
"github.com/patrickmn/go-cache"
"golang.org/x/crypto/bcrypt"
"net/url"

View file

@ -1,8 +1,8 @@
package server
import (
apperrors "cgnolink/errors"
"cgnolink/link"
apperrors "cgnolink/pkg/cgnolink/errors"
"cgnolink/pkg/cgnolink/link"
"github.com/jackc/pgx/v4/pgxpool"
"github.com/knadh/koanf"
"github.com/labstack/echo/v4"