diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..dcd2479 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,38 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod download +archives: +- replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' +builds: + - + id: "api" + main: ./cmd/api/main.go + binary: api + # List of combinations of GOOS + GOARCH + GOARM to ignore. + # Default is empty. + ignore: + - goos: darwin + goarch: 386 + - goos: linux + goarch: arm + goarm: 7 + - goarm: mips64 + gomips: hardfloat diff --git a/cmd/api/main.go b/cmd/api/main.go index e4b35a7..8211b0d 100644 --- a/cmd/api/main.go +++ b/cmd/api/main.go @@ -26,9 +26,9 @@ import ( "github.com/neonxp/rutina/v2" - "backend/pkg/api" - "backend/pkg/config" - "backend/pkg/db" + "github.com/neonxp/wsbroadcast/pkg/api" + "github.com/neonxp/wsbroadcast/pkg/config" + "github.com/neonxp/wsbroadcast/pkg/db" ) func main() { diff --git a/pkg/api/api.go b/pkg/api/api.go index ea450a9..8f42d22 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -33,8 +33,8 @@ import ( "github.com/labstack/echo/v4" - "backend/pkg/config" - "backend/pkg/db" + "github.com/neonxp/wsbroadcast/pkg/config" + "github.com/neonxp/wsbroadcast/pkg/db" ) type Server struct { diff --git a/pkg/api/channel.go b/pkg/api/channel.go index 1c793f7..a4b0db5 100644 --- a/pkg/api/channel.go +++ b/pkg/api/channel.go @@ -29,7 +29,7 @@ import ( "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" - "backend/pkg/model" + "github.com/neonxp/wsbroadcast/pkg/model" ) func (s *Server) createChannel(c echo.Context) error { diff --git a/pkg/api/connection.go b/pkg/api/connection.go index 551fff6..85e5ed1 100644 --- a/pkg/api/connection.go +++ b/pkg/api/connection.go @@ -21,7 +21,7 @@ THE SOFTWARE. */ package api -import "backend/pkg/model" +import "github.com/neonxp/wsbroadcast/pkg/model" type connection struct { ID uint64 `json:"id"` diff --git a/pkg/api/websocket.go b/pkg/api/websocket.go index b0d1eb5..bf5cf64 100644 --- a/pkg/api/websocket.go +++ b/pkg/api/websocket.go @@ -28,7 +28,7 @@ import ( "github.com/labstack/echo/v4" "golang.org/x/net/websocket" - "backend/pkg/model" + "github.com/neonxp/wsbroadcast/pkg/model" ) func (s *Server) websocketHandler(c echo.Context) error {