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
|
go 1.22.2
|
||||||
|
5
main.go
5
main.go
@ -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())
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user