Skip to content

Commit

Permalink
work with go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
cpunion committed Nov 27, 2024
1 parent f68c85b commit 65b3a79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/gotray/go-python

go 1.21

toolchain go1.23.2
go 1.20

require (
github.com/fatih/color v1.18.0
Expand Down
1 change: 0 additions & 1 deletion python.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func EvalCode(code Object, globals, locals Dict) Object {

// ----------------------------------------------------------------------------

// llgo:link cast llgo.staticCast
func cast[U, T Objecter](from T) (to U) {
*(*T)(unsafe.Pointer(&to)) = from
return
Expand Down

0 comments on commit 65b3a79

Please sign in to comment.