pkg: change module paths to scv, pormpt for number select

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2024-05-14 14:15:26 +03:00
parent 6e955fa4f1
commit 6ac24ddea8
Signed by: Hesham
GPG Key ID: 74876157D199B09E
4 changed files with 9 additions and 8 deletions

2
go.mod
View File

@ -1,3 +1,3 @@
module mystcapi module gitea.hbanafa.com/hesham/mystc-api
go 1.22.2 go 1.22.2

View File

@ -4,8 +4,8 @@ import (
"bufio" "bufio"
"flag" "flag"
"fmt" "fmt"
"mystcapi/pkg/endpoints" "gitea.hbanafa.com/hesham/mystc-api/pkg/endpoints"
"mystcapi/pkg/models" "gitea.hbanafa.com/hesham/mystc-api/pkg/models"
"os" "os"
"strings" "strings"
) )
@ -33,6 +33,7 @@ func main() {
for idx, n := range phones.PhoneNumbers { for idx, n := range phones.PhoneNumbers {
fmt.Printf("%d: %s %s\n", idx, n.Number, n.Type.String()) fmt.Printf("%d: %s %s\n", idx, n.Number, n.Type.String())
} }
fmt.Printf("Select a number: ")
input, err := reader.ReadString('\n') input, err := reader.ReadString('\n')
if err != nil { if err != nil {
fmt.Println(err.Error()) fmt.Println(err.Error())

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"io" "io"
"mystcapi/internal/urls" "gitea.hbanafa.com/hesham/mystc-api/internal/urls"
"mystcapi/pkg/models" "gitea.hbanafa.com/hesham/mystc-api/pkg/models"
"net/http" "net/http"
) )

View File

@ -5,9 +5,9 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
"mystcapi/internal/constants" "gitea.hbanafa.com/hesham/mystc-api/internal/constants"
"mystcapi/internal/urls" "gitea.hbanafa.com/hesham/mystc-api/internal/urls"
"mystcapi/pkg/models" "gitea.hbanafa.com/hesham/mystc-api/pkg/models"
"net/http" "net/http"
) )