Fix linting problems

This commit is contained in:
Jamie Curnow
2021-06-30 11:20:34 +10:00
parent 80a31b3041
commit 86a35beb3a
26 changed files with 53 additions and 51 deletions

View File

@@ -11,7 +11,7 @@ type AppState struct {
termSig chan bool
}
// NewState ...
// NewState creates a new app state
func NewState() *AppState {
state := &AppState{
// buffered channel
@@ -20,12 +20,12 @@ func NewState() *AppState {
return state
}
// GetWaitGroup ...
// GetWaitGroup returns the state's wg
func (state *AppState) GetWaitGroup() *sync.WaitGroup {
return &state.waitGroup
}
// GetTermSig ...
// GetTermSig returns the state's term signal
func (state *AppState) GetTermSig() chan bool {
return state.termSig
}