From 8d3dfb145720eb4551ffa74d37e42c6d215cef7e Mon Sep 17 00:00:00 2001 From: snoutie Date: Mon, 24 Mar 2025 10:01:47 +0100 Subject: [PATCH] Rename Module --- cmd/api/api.go | 2 +- cmd/database/table/cdsView.go | 2 +- cmd/database/table/cdsViewField.go | 2 +- cmd/database/table/keyword.go | 2 +- cmd/model/cdsView.go | 2 +- cmd/model/keyword.go | 2 +- cmd/router/router.go | 4 ++-- cmd/search/search.go | 4 ++-- cmd/ui/html/main.html | 2 +- go.mod | 2 +- main.go | 8 ++++---- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cmd/api/api.go b/cmd/api/api.go index d92cf40..a7e815a 100644 --- a/cmd/api/api.go +++ b/cmd/api/api.go @@ -18,12 +18,12 @@ package api import ( + "api-cds-search/cmd/database/table" "encoding/json" "errors" "fmt" "io" "net/http" - "sap-cds-search/cmd/database/table" "time" ) diff --git a/cmd/database/table/cdsView.go b/cmd/database/table/cdsView.go index 3a7c266..38b0e19 100644 --- a/cmd/database/table/cdsView.go +++ b/cmd/database/table/cdsView.go @@ -18,8 +18,8 @@ package table import ( + "api-cds-search/cmd/database" _ "embed" - "sap-cds-search/cmd/database" ) type CDSView struct { diff --git a/cmd/database/table/cdsViewField.go b/cmd/database/table/cdsViewField.go index 64b80b0..87ec0f2 100644 --- a/cmd/database/table/cdsViewField.go +++ b/cmd/database/table/cdsViewField.go @@ -18,8 +18,8 @@ package table import ( + "api-cds-search/cmd/database" _ "embed" - "sap-cds-search/cmd/database" ) type CDSViewField struct { diff --git a/cmd/database/table/keyword.go b/cmd/database/table/keyword.go index a6020ee..13c8cd4 100644 --- a/cmd/database/table/keyword.go +++ b/cmd/database/table/keyword.go @@ -18,8 +18,8 @@ package table import ( + "api-cds-search/cmd/database" _ "embed" - "sap-cds-search/cmd/database" ) type Keyword struct { diff --git a/cmd/model/cdsView.go b/cmd/model/cdsView.go index e29fc8d..313118a 100644 --- a/cmd/model/cdsView.go +++ b/cmd/model/cdsView.go @@ -18,8 +18,8 @@ package model import ( + "api-cds-search/cmd/database/table" "fmt" - "sap-cds-search/cmd/database/table" "strings" "golang.org/x/text/cases" diff --git a/cmd/model/keyword.go b/cmd/model/keyword.go index 8e4b06a..4972ccb 100644 --- a/cmd/model/keyword.go +++ b/cmd/model/keyword.go @@ -17,7 +17,7 @@ package model -import "sap-cds-search/cmd/database/table" +import "api-cds-search/cmd/database/table" func GetKeywordsModel() (*[]table.Keyword, error) { keywords, err := table.GetAllKeywords() diff --git a/cmd/router/router.go b/cmd/router/router.go index bc5dfdb..003f24a 100644 --- a/cmd/router/router.go +++ b/cmd/router/router.go @@ -18,10 +18,10 @@ package router import ( + "api-cds-search/cmd/search" + "api-cds-search/cmd/ui" "fmt" "net/http" - "sap-cds-search/cmd/search" - "sap-cds-search/cmd/ui" "github.com/go-chi/chi" ) diff --git a/cmd/search/search.go b/cmd/search/search.go index 50b1b15..9acb844 100644 --- a/cmd/search/search.go +++ b/cmd/search/search.go @@ -18,11 +18,11 @@ package search import ( + "api-cds-search/cmd/model" + "api-cds-search/cmd/ui" "errors" "fmt" "net/http" - "sap-cds-search/cmd/model" - "sap-cds-search/cmd/ui" "slices" "strconv" "strings" diff --git a/cmd/ui/html/main.html b/cmd/ui/html/main.html index 25963b2..67352ab 100644 --- a/cmd/ui/html/main.html +++ b/cmd/ui/html/main.html @@ -14,7 +14,7 @@ diff --git a/go.mod b/go.mod index 00ea93f..ef9c2cc 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module sap-cds-search +module api-cds-search go 1.23.7 diff --git a/main.go b/main.go index f6c6b55..9065ab9 100644 --- a/main.go +++ b/main.go @@ -1,12 +1,12 @@ package main import ( + "api-cds-search/cmd/database" + "api-cds-search/cmd/router" + "api-cds-search/cmd/search" + "api-cds-search/cmd/ui" "fmt" "net/http" - "sap-cds-search/cmd/database" - "sap-cds-search/cmd/router" - "sap-cds-search/cmd/search" - "sap-cds-search/cmd/ui" ) func main() {