File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ module github.com/coder/coder/scripts/apitypings
2
2
3
3
go 1.23.0
4
4
5
- toolchain go1.23.3
6
-
7
5
require (
8
- github.com/coder/gots v0.0.0-20241126222907-985a03a876f0
9
6
github.com/stretchr/testify v1.10.0
10
7
)
11
8
Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"log"
6
6
7
- "github.com/coder/gots "
8
- "github.com/coder/gots /config"
7
+ "github.com/coder/guts "
8
+ "github.com/coder/guts /config"
9
9
10
10
// Must import the packages we are trying to convert
11
11
// And include the ones we are referencing
@@ -16,7 +16,7 @@ import (
16
16
)
17
17
18
18
func main () {
19
- gen , err := gots .NewGolangParser ()
19
+ gen , err := guts .NewGolangParser ()
20
20
if err != nil {
21
21
log .Fatalf ("new convert: %v" , err )
22
22
}
@@ -62,7 +62,7 @@ func main() {
62
62
fmt .Println (output )
63
63
}
64
64
65
- func TsMutations (ts * gots .Typescript ) {
65
+ func TsMutations (ts * guts .Typescript ) {
66
66
ts .ApplyMutations (
67
67
// Enum list generator
68
68
config .EnumLists ,
@@ -74,7 +74,7 @@ func TsMutations(ts *gots.Typescript) {
74
74
}
75
75
76
76
// TypeMappings is all the custom types for codersdk
77
- func TypeMappings (gen * gots .GoParser ) error {
77
+ func TypeMappings (gen * guts .GoParser ) error {
78
78
gen .IncludeCustomDeclaration (config .StandardMappings ())
79
79
80
80
err := gen .IncludeCustom (map [string ]string {
You can’t perform that action at this time.
0 commit comments