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

do not error on not used functions #18

Closed
wants to merge 54 commits into from
Closed

do not error on not used functions #18

wants to merge 54 commits into from

Conversation

host6
Copy link
Contributor

@host6 host6 commented May 21, 2019

package a
var Func1 func()

package b
var Func2 func()

package c
func Declare() {
godif.Provide(&a.Func1, funcImpl)
}

package d
func Declare() {
godif.Provide(&b.Func2, funcImpl)
}

package e
func main() {
c.Declare()
d.Declare()
godif.Require(&a.Func1)
ResolveAll()

// resulting error: d is not used
}

@maxim-ge maxim-ge closed this May 21, 2019
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

Successfully merging this pull request may close these issues.

2 participants