8000 chore: switch gots -> guts (package rename) · coder/coder@fe9c7d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit f 8000 e9c7d1

Browse files
committed
chore: switch gots -> guts (package rename)
1 parent f38bb71 commit fe9c7d1

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

scripts/apitypings/go.mod

Lines changed: 0 add 8000 itions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ module github.com/coder/coder/scripts/apitypings
22

33
go 1.23.0
44

5-
toolchain go1.23.3
6-
75
require (
8-
github.com/coder/gots v0.0.0-20241126222907-985a03a876f0
96
github.com/stretchr/testify v1.10.0
107
)
118

scripts/apitypings/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"log"
66

7-
"github.com/coder/gots"
8-
"github.com/coder/gots/config"
7+
"github.com/coder/guts"
8+
"github.com/coder/guts/config"
99

1010
// Must import the packages we are trying to convert
1111
// And include the ones we are referencing
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
func main() {
19-
gen, err := gots.NewGolangParser()
19+
gen, err := guts.NewGolangParser()
2020
if err != nil {
2121
log.Fatalf("new convert: %v", err)
2222
}
@@ -62,7 +62,7 @@ func main() {
6262
fmt.Println(output)
6363
}
6464

65-
func TsMutations(ts *gots.Typescript) {
65+
func TsMutations(ts *guts.Typescript) {
6666
ts.ApplyMutations(
6767
// Enum list generator
6868
config.EnumLists,
@@ -74,7 +74,7 @@ func TsMutations(ts *gots.Typescript) {
7474
}
7575

7676
// TypeMappings is all the custom types for codersdk
77-
func TypeMappings(gen *gots.GoParser) error {
77+
func TypeMappings(gen *guts.GoParser) error {
7878
gen.IncludeCustomDeclaration(config.StandardMappings())
7979

8080
err := gen.IncludeCustom(map[string]string{

0 commit comments

Comments
 (0)
0