Skip to content

Commit

Permalink
refactor: Rearrange struct to save memory
Browse files Browse the repository at this point in the history
  • Loading branch information
macie committed Sep 8, 2024
1 parent 37b2fd6 commit 0746882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sortof/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ var AppVersion = "local-dev"
// AppConfig contains configuration options for the program provided by the user.
type AppConfig struct {
SortFunc func(ctx context.Context, file io.ReadCloser) ([]string, error)
ExitMessage string
Files []string
Timeout time.Duration
ExitMessage string
}

// NewAppConfig creates a new AppConfig from the given command line arguments.
Expand Down

0 comments on commit 0746882

Please sign in to comment.