Skip to content

Commit

Permalink
Fix govet:fieldalignment linting error
Browse files Browse the repository at this point in the history
Change field order of `Config` struct to reduce allocation
requirements and pass `fieldalignment` linting check.

refs GH-141
  • Loading branch information
atc0005 committed Apr 8, 2021
1 parent 4364605 commit 70dc2de
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ const DefaultNagiosNotificationTimeout time.Duration = 30 * time.Second
// struct is configured via command-line flags provided by the user.
type Config struct {

// Retries is the number of attempts that this application will make
// to deliver messages before giving up.
Retries int

// RetriesDelay is the number of seconds to wait between retry attempts.
RetriesDelay int

// Team is the human-readable name of the Microsoft Teams "team" that
// contains the channel we wish to post a message to. This is used in
// informational output produced by this application only; the remote API
Expand Down Expand Up @@ -108,6 +101,13 @@ type Config struct {
// the message that we will submit.
MessageText string

// Retries is the number of attempts that this application will make
// to deliver messages before giving up.
Retries int

// RetriesDelay is the number of seconds to wait between retry attempts.
RetriesDelay int

// Whether detailed output should be shown after message submission
// success or failure.
VerboseOutput bool
Expand Down

0 comments on commit 70dc2de

Please sign in to comment.