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

config.go compilation problem. #44

Closed
kilim opened this issue Jul 8, 2011 · 4 comments
Closed

config.go compilation problem. #44

kilim opened this issue Jul 8, 2011 · 4 comments

Comments

@kilim
Copy link

kilim commented Jul 8, 2011

config.go:107: invalid operation: nm == name (mismatched types reflect.StructTag and string)
config.go:179: cannot use name (type reflect.StructTag) as type string in function argument

Go's been updated so that tags on fields are not simple strings, but encoded key-value pairs.

type Foo struct {
bar int "This is not a description"
baz int "desc": "This is a correct tag"
}

The first tag cannot be retrieved from the reflection API.

@nsf
Copy link
Owner

nsf commented Jul 8, 2011

Version, version! Tell me your compiler version. I'm checking the latest weekly right now :)

@nsf
Copy link
Owner

nsf commented Jul 8, 2011

Fixed in the latest gocode commit. I've marked it with compatible-with-go-weekly.2011-07-07 tag as usual.

Please check it out and close the issue if it's gone.

@kilim
Copy link
Author

kilim commented Jul 8, 2011

Ah, didn't realize that hg clone of go didn't pull in the latest, latest stuff.

It compiles cleanly now.

@kilim kilim closed this as completed Jul 8, 2011
@kilim
Copy link
Author

kilim commented Jul 8, 2011

Forgot to thank you much for this lovely bit of work, and for the prompt service!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants