Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Typing bug: interface{} instead of ps.Any #19

Closed
tfgordon opened this issue Jan 5, 2016 · 2 comments
Closed

Typing bug: interface{} instead of ps.Any #19

tfgordon opened this issue Jan 5, 2016 · 2 comments

Comments

@tfgordon
Copy link

tfgordon commented Jan 5, 2016

When trying to build with version go1.5 linux/amd64, I get the following error:

../../mndrix/golog/term/term.go:195: cannot use func literal (type func(string, interface {})) as type func(string, ps.Any) in argument to innerNames.ForEach

@mndrix
Copy link
Owner

mndrix commented Jan 5, 2016

ps.Any was removed a few months ago. Do you have the latest version of these packages?

  • github.com/mndrix/ps
  • github.com/mndrix/golog

If so, you may need to change your code to handle the new types. The following gofmt command should do it all automatically:

gofmt -r 'ps.Any -> interface{}' -w .

@mndrix mndrix closed this as completed Jan 5, 2016
@tfgordon
Copy link
Author

tfgordon commented Jan 5, 2016

Many thanks, also for developing Golog and publishing it as open source software.

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

No branches or pull requests

2 participants