diff --git a/cmd/goskola24api/main.go b/cmd/goskola24api/main.go index e44fee4..e986079 100644 --- a/cmd/goskola24api/main.go +++ b/cmd/goskola24api/main.go @@ -3,8 +3,8 @@ package main import ( "fmt" - goskola24api "git.zervo.org/zervo/GoSkola24API" - "git.zervo.org/zervo/GoSkola24API/internal/utility" + goskola24api "git.zervo.org/zervo/goskola24api" + "git.zervo.org/zervo/goskola24api/internal/utility" ) func main() { diff --git a/go.mod b/go.mod index 7a38a0b..6ea412e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module git.zervo.org/zervo/GoSkola24API +module git.zervo.org/zervo/goskola24api go 1.22.5 diff --git a/GoSkola24API.go b/goskola24api.go similarity index 94% rename from GoSkola24API.go rename to goskola24api.go index b43f93b..2c094e5 100644 --- a/GoSkola24API.go +++ b/goskola24api.go @@ -25,8 +25,8 @@ along with this program. If not, see . package GoSkola24API import ( - "git.zervo.org/zervo/GoSkola24API/internal/requests" - pubtypes "git.zervo.org/zervo/GoSkola24API/types" + "git.zervo.org/zervo/goskola24api/internal/requests" + pubtypes "git.zervo.org/zervo/goskola24api/types" ) type Skola24API struct { diff --git a/internal/requests/get_classes.go b/internal/requests/get_classes.go index 223a310..8e66591 100644 --- a/internal/requests/get_classes.go +++ b/internal/requests/get_classes.go @@ -27,8 +27,8 @@ package requests import ( "errors" - "git.zervo.org/zervo/GoSkola24API/internal/types" - pubtypes "git.zervo.org/zervo/GoSkola24API/types" + "git.zervo.org/zervo/goskola24api/internal/types" + pubtypes "git.zervo.org/zervo/goskola24api/types" ) func GetClasses(school pubtypes.School, checkAvailability bool) (_result []pubtypes.Class, _error error) { diff --git a/internal/requests/get_generic_selection.go b/internal/requests/get_generic_selection.go index 5c8838b..a467734 100644 --- a/internal/requests/get_generic_selection.go +++ b/internal/requests/get_generic_selection.go @@ -27,9 +27,9 @@ package requests import ( "errors" - "git.zervo.org/zervo/GoSkola24API/internal/types" - "git.zervo.org/zervo/GoSkola24API/internal/utility" - pubtypes "git.zervo.org/zervo/GoSkola24API/types" + "git.zervo.org/zervo/goskola24api/internal/types" + "git.zervo.org/zervo/goskola24api/internal/utility" + pubtypes "git.zervo.org/zervo/goskola24api/types" ) func GetGenericSelection(school pubtypes.School, filters types.RequestFilters) (_result map[string]interface{}, _error error) { diff --git a/internal/requests/get_rooms.go b/internal/requests/get_rooms.go index 5dab71b..17cd348 100644 --- a/internal/requests/get_rooms.go +++ b/internal/requests/get_rooms.go @@ -27,8 +27,8 @@ package requests import ( "errors" - "git.zervo.org/zervo/GoSkola24API/internal/types" - pubtypes "git.zervo.org/zervo/GoSkola24API/types" + "git.zervo.org/zervo/goskola24api/internal/types" + pubtypes "git.zervo.org/zervo/goskola24api/types" ) func GetRooms(school pubtypes.School, checkAvailability bool) (_result []pubtypes.Room, _error error) { diff --git a/internal/requests/get_schools.go b/internal/requests/get_schools.go index 6f18684..7625cf8 100644 --- a/internal/requests/get_schools.go +++ b/internal/requests/get_schools.go @@ -29,9 +29,9 @@ package requests import ( "errors" - "git.zervo.org/zervo/GoSkola24API/internal/types" - "git.zervo.org/zervo/GoSkola24API/internal/utility" - pubtypes "git.zervo.org/zervo/GoSkola24API/types" + "git.zervo.org/zervo/goskola24api/internal/types" + "git.zervo.org/zervo/goskola24api/internal/utility" + pubtypes "git.zervo.org/zervo/goskola24api/types" ) func GetSchools(api_host string) (_result []pubtypes.School, _error error) { diff --git a/internal/requests/get_students.go b/internal/requests/get_students.go index fa92311..f74a9c7 100644 --- a/internal/requests/get_students.go +++ b/internal/requests/get_students.go @@ -27,8 +27,8 @@ package requests import ( "errors" - "git.zervo.org/zervo/GoSkola24API/internal/types" - pubtypes "git.zervo.org/zervo/GoSkola24API/types" + "git.zervo.org/zervo/goskola24api/internal/types" + pubtypes "git.zervo.org/zervo/goskola24api/types" ) // TODO: Create and implement proper students type once we have data diff --git a/internal/requests/get_teachers.go b/internal/requests/get_teachers.go index 070e6d8..92724aa 100644 --- a/internal/requests/get_teachers.go +++ b/internal/requests/get_teachers.go @@ -27,8 +27,8 @@ package requests import ( "errors" - "git.zervo.org/zervo/GoSkola24API/internal/types" - pubtypes "git.zervo.org/zervo/GoSkola24API/types" + "git.zervo.org/zervo/goskola24api/internal/types" + pubtypes "git.zervo.org/zervo/goskola24api/types" ) func GetTeachers(school pubtypes.School, checkAvailability bool) (_result []pubtypes.Teacher, _error error) { diff --git a/internal/requests/get_terms.go b/internal/requests/get_terms.go index 796c313..a55db0e 100644 --- a/internal/requests/get_terms.go +++ b/internal/requests/get_terms.go @@ -27,9 +27,9 @@ package requests import ( "errors" - "git.zervo.org/zervo/GoSkola24API/internal/types" - "git.zervo.org/zervo/GoSkola24API/internal/utility" - pubtypes "git.zervo.org/zervo/GoSkola24API/types" + "git.zervo.org/zervo/goskola24api/internal/types" + "git.zervo.org/zervo/goskola24api/internal/utility" + pubtypes "git.zervo.org/zervo/goskola24api/types" ) func GetTerms(api_host string) (_result pubtypes.Terms, _error error) { diff --git a/internal/utility/request.go b/internal/utility/request.go index a0cf6a1..86ecd86 100644 --- a/internal/utility/request.go +++ b/internal/utility/request.go @@ -32,7 +32,7 @@ import ( "io" "net/http" - "git.zervo.org/zervo/GoSkola24API/internal/types" + "git.zervo.org/zervo/goskola24api/internal/types" ) func Request(data any, endpoint string) (_response interface{}, _error error) {