Last active
December 14, 2019 23:28
-
-
Save sle-c/4a60a68c741a8e6b797cf5381c01a630 to your computer and use it in GitHub Desktop.
Defining Factory function and Object interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Object interface { | |
Close() | |
} | |
type Factory func() (Object, error) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment