Skip to content

Accept functions as interfaces #26

Closed
@bsideup

Description

@bsideup

Hi!

First of all, thanks for go-linq, it's awesome :)

Since there are no generics in Golang, we have to deal with interface{}-s.

I just spotted nice hack in Glow project to allow users to specify types on parameters themself:
https://github.com/chrislusf/glow/blob/master/flow/dataset_map.go#L19-L47

Seems like a really great idea to steal :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions