Skip to content

Commit e428755

Browse files
authored
chore: bump golang to 1.23 (#16)
1 parent 1398093 commit e428755

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: convert.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -626,10 +626,8 @@ func (ts *Typescript) buildStruct(obj types.Object, st *types.Struct) (*bindings
626626
switch typedObj := obj.Type().(type) {
627627
case *types.Named:
628628
typeParamed = typedObj
629-
//case *types.Alias:
630-
// Generic Go alias types are introduced in Go 1.23. When updated to
631-
// Go 1.23, this code can be uncommented
632-
//typeParamed = typedObj
629+
case *types.Alias:
630+
typeParamed = typedObj
633631
default:
634632
return tsi, xerrors.Errorf("not supported type %T for %q to parse type parameters", obj.Type(), obj.Name())
635633
}

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/coder/guts
22

3-
go 1.22.8
3+
go 1.23
44

55
require (
66
github.com/dop251/goja v0.0.0-20241024094426-79f3a7efcdbd

0 commit comments

Comments
 (0)