Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract: can't extract package github.com/pelletier/go-toml #1056

Closed
For-ACGN opened this issue Mar 18, 2021 · 0 comments · Fixed by #1057
Closed

extract: can't extract package github.com/pelletier/go-toml #1056

For-ACGN opened this issue Mar 18, 2021 · 0 comments · Fixed by #1057
Labels
area/extract wrapper generation bug Something isn't working
Milestone

Comments

@For-ACGN
Copy link
Contributor

failed to format source: 17:27: expected operand, found 'go' (and 10 more errors): // Code generated by 'yaegi extract github.com/pelletier/go-toml'. DO NOT EDIT.
package yaegi

import (
	"github.com/pelletier/go-toml"
	"reflect"
)

func init() {
	Symbols["github.com/pelletier/go-toml"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"Load": reflect.ValueOf(go -toml.Load),
		"LoadBytes": reflect.ValueOf(go -toml.LoadBytes),
		"LoadFile": reflect.ValueOf(go -toml.LoadFile),
		"LoadReader": reflect.ValueOf(go -toml.LoadReader),
	}
}

expected package name is "toml", not the "go-toml"

@mvertes mvertes added area/extract wrapper generation bug Something isn't working labels Mar 23, 2021
@mvertes mvertes added this to the v0.9.x milestone Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extract wrapper generation bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants