pkg: change module paths to scv, pormpt for number select
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
6e955fa4f1
commit
6ac24ddea8
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
||||
module mystcapi
|
||||
module gitea.hbanafa.com/hesham/mystc-api
|
||||
|
||||
go 1.22.2
|
||||
|
5
main.go
5
main.go
@ -4,8 +4,8 @@ import (
|
||||
"bufio"
|
||||
"flag"
|
||||
"fmt"
|
||||
"mystcapi/pkg/endpoints"
|
||||
"mystcapi/pkg/models"
|
||||
"gitea.hbanafa.com/hesham/mystc-api/pkg/endpoints"
|
||||
"gitea.hbanafa.com/hesham/mystc-api/pkg/models"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
@ -33,6 +33,7 @@ func main() {
|
||||
for idx, n := range phones.PhoneNumbers {
|
||||
fmt.Printf("%d: %s %s\n", idx, n.Number, n.Type.String())
|
||||
}
|
||||
fmt.Printf("Select a number: ")
|
||||
input, err := reader.ReadString('\n')
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"mystcapi/internal/urls"
|
||||
"mystcapi/pkg/models"
|
||||
"gitea.hbanafa.com/hesham/mystc-api/internal/urls"
|
||||
"gitea.hbanafa.com/hesham/mystc-api/pkg/models"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"mystcapi/internal/constants"
|
||||
"mystcapi/internal/urls"
|
||||
"mystcapi/pkg/models"
|
||||
"gitea.hbanafa.com/hesham/mystc-api/internal/constants"
|
||||
"gitea.hbanafa.com/hesham/mystc-api/internal/urls"
|
||||
"gitea.hbanafa.com/hesham/mystc-api/pkg/models"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user