Created
December 28, 2020 08:38
-
-
Save madflojo/69604a62bde46e22833031da58d6a062 to your computer and use it in GitHub Desktop.
Example Golang app package structure
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
package app | |
import ( | |
"fmt" | |
) | |
var ErrShutdown = fmt.Errorf("application was shutdown gracefully") | |
func Start(...) error { | |
// Application runtime code goes here | |
} | |
func Shutdown() { | |
// Shutdown contexts, listeners, and such | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment