mndrix / golog

Prolog interpreter in Go
MIT License
374 stars 39 forks source link

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

Closed tfgordon closed 8 years ago

tfgordon commented 8 years ago

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 commented 8 years ago

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

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 .
tfgordon commented 8 years ago

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