Change package name

This commit is contained in:
zervo 2024-11-26 17:04:32 +01:00 committed by zervo
parent 12ac21e5e2
commit 0c512b4af2
11 changed files with 23 additions and 23 deletions

View file

@ -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() {

2
go.mod
View file

@ -1,3 +1,3 @@
module git.zervo.org/zervo/GoSkola24API
module git.zervo.org/zervo/goskola24api
go 1.22.5

View file

@ -25,8 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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 {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {