We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6301d3b commit a80dcbeCopy full SHA for a80dcbe
apiv2/readApiV2.go
@@ -4,8 +4,6 @@ import (
4
"encoding/json"
5
"errors"
6
"io/ioutil"
7
- "os"
8
- "path/filepath"
9
"strings"
10
"unicode"
11
@@ -53,12 +51,12 @@ func (Obj *ServiceObjV2) CapitaliseName(name *string) string {
53
51
54
52
}
55
56
-func ReadV2file(serviceAlias string) (*ServiceObjV2, error) {
+func ReadV2file(filepath string) (*ServiceObjV2, error) {
57
58
var Obj ServiceObjV2
59
60
- dir, _ := os.Getwd()
61
- filepath := filepath.Join(dir + "/apiv2/" + serviceAlias + ".json")
+ // dir, _ := os.Getwd()
+ // filepath := filepath.Join(dir + "/apiv2/" + serviceAlias + ".json")
62
63
file, err := ioutil.ReadFile(filepath)
64
0 commit comments