File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import (
28
28
)
29
29
30
30
// string utils (thanks to https://www.dotnetperls.com/between-before-after-go)
31
+
31
32
func between (value string , a string , b string ) string {
32
33
// Get substring between two strings.
33
34
posFirst := strings .Index (value , a )
@@ -68,7 +69,6 @@ func after(value string, a string) string {
68
69
}
69
70
70
71
71
-
72
72
// parser functions
73
73
74
74
func getID (line string ) string {
Original file line number Diff line number Diff line change @@ -96,12 +96,12 @@ func Parse (file *os.File) error {
96
96
}
97
97
98
98
// Create a Schema struct
99
- TLstruct := new (jsonStruct.Schema )
100
- TLstruct .Constructors = constructors
101
- TLstruct .Methods = methods
99
+ TLStruct := new (jsonStruct.Schema )
100
+ TLStruct .Constructors = constructors
101
+ TLStruct .Methods = methods
102
102
103
103
// Convert struct to json
104
- jsonBytes , err := json .Marshal (TLstruct ); if err != nil {return err }
104
+ jsonBytes , err := json .Marshal (TLStruct ); if err != nil {return err }
105
105
106
106
// Write json to file
107
107
_ , err = output .Write (jsonBytes ); if err != nil {return err }
You can’t perform that action at this time.
0 commit comments