traefik / yaegi

Yaegi is Another Elegant Go Interpreter

Home Page:https://pkg.go.dev/github.com/traefik/yaegi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot import "golang.org/x/text/encoding/charmap"

ddtmachado opened this issue · comments

The following program sample.go triggers an unexpected result

package main

import (
	"golang.org/x/text/encoding/charmap"
)

func main() {
	e := charmap.ISO8859_1.NewEncoder()
	e.String("foo")
}

Expected result

$ go run main.go
foo <nil>

Got

$ yaegi run main.go
run: main.go:6:2: import "golang.org/x/text/encoding/charmap" error: /home/douglas/go/src/golang.org/x/text/encoding/charmap/charmap.go:61:5: variable definition loop

Yaegi Version

0.13.0

Additional Notes

No response

fixed by #1441