Rename Module

This commit is contained in:
snoutie 2025-03-24 10:01:47 +01:00
parent fa0679163f
commit 8d3dfb1457
11 changed files with 16 additions and 16 deletions

View File

@ -18,12 +18,12 @@
package api package api
import ( import (
"api-cds-search/cmd/database/table"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"io" "io"
"net/http" "net/http"
"sap-cds-search/cmd/database/table"
"time" "time"
) )

View File

@ -18,8 +18,8 @@
package table package table
import ( import (
"api-cds-search/cmd/database"
_ "embed" _ "embed"
"sap-cds-search/cmd/database"
) )
type CDSView struct { type CDSView struct {

View File

@ -18,8 +18,8 @@
package table package table
import ( import (
"api-cds-search/cmd/database"
_ "embed" _ "embed"
"sap-cds-search/cmd/database"
) )
type CDSViewField struct { type CDSViewField struct {

View File

@ -18,8 +18,8 @@
package table package table
import ( import (
"api-cds-search/cmd/database"
_ "embed" _ "embed"
"sap-cds-search/cmd/database"
) )
type Keyword struct { type Keyword struct {

View File

@ -18,8 +18,8 @@
package model package model
import ( import (
"api-cds-search/cmd/database/table"
"fmt" "fmt"
"sap-cds-search/cmd/database/table"
"strings" "strings"
"golang.org/x/text/cases" "golang.org/x/text/cases"

View File

@ -17,7 +17,7 @@
package model package model
import "sap-cds-search/cmd/database/table" import "api-cds-search/cmd/database/table"
func GetKeywordsModel() (*[]table.Keyword, error) { func GetKeywordsModel() (*[]table.Keyword, error) {
keywords, err := table.GetAllKeywords() keywords, err := table.GetAllKeywords()

View File

@ -18,10 +18,10 @@
package router package router
import ( import (
"api-cds-search/cmd/search"
"api-cds-search/cmd/ui"
"fmt" "fmt"
"net/http" "net/http"
"sap-cds-search/cmd/search"
"sap-cds-search/cmd/ui"
"github.com/go-chi/chi" "github.com/go-chi/chi"
) )

View File

@ -18,11 +18,11 @@
package search package search
import ( import (
"api-cds-search/cmd/model"
"api-cds-search/cmd/ui"
"errors" "errors"
"fmt" "fmt"
"net/http" "net/http"
"sap-cds-search/cmd/model"
"sap-cds-search/cmd/ui"
"slices" "slices"
"strconv" "strconv"
"strings" "strings"

View File

@ -14,7 +14,7 @@
<footer style="position: fixed; bottom: 0px"> <footer style="position: fixed; bottom: 0px">
<a <a
style="color: var(--on_background)" style="color: var(--on_background)"
href="https://code.achtarmig.org/sap/api_cds" href="https://code.achtarmig.org/sap/api-cds-search"
>Source</a >Source</a
> >
</footer> </footer>

2
go.mod
View File

@ -1,4 +1,4 @@
module sap-cds-search module api-cds-search
go 1.23.7 go 1.23.7

View File

@ -1,12 +1,12 @@
package main package main
import ( import (
"api-cds-search/cmd/database"
"api-cds-search/cmd/router"
"api-cds-search/cmd/search"
"api-cds-search/cmd/ui"
"fmt" "fmt"
"net/http" "net/http"
"sap-cds-search/cmd/database"
"sap-cds-search/cmd/router"
"sap-cds-search/cmd/search"
"sap-cds-search/cmd/ui"
) )
func main() { func main() {