Allow binds to be provided by a function.

This is useful for situations where the initialisation of some object
should be deferred, eg. when there are distinct "setup" and "use" phases
to a tools lifecycle.
This commit is contained in:
Alec Thomas
2020-03-03 13:57:56 +11:00
parent c45ea59559
commit b8c82fea7c
6 changed files with 68 additions and 9 deletions
+1 -2
View File
@@ -19,8 +19,6 @@ linters:
linters-settings:
govet:
check-shadowing: true
gocyclo:
min-complexity: 10
dupl:
threshold: 100
goconst:
@@ -41,3 +39,4 @@ issues:
- 'composite literal uses unkeyed fields'
- 'bad syntax for struct tag key'
- 'bad syntax for struct tag pair'
- 'result .* \(error\) is always nil'