-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
good first issueGood for newcomersGood for newcomersrefactoringIssues or PRs to improving code structure, without changing its external behaviorIssues or PRs to improving code structure, without changing its external behavior
Description
The complexity of the code was increased with #13 by the multiple branching if
The parsing of the content could be moved out the main with something like this
contentStr, err := parseContent(flag)
if err != nil {
fmt.Println
os.Exitt(1)
}
// …
func parseContent(flag) string, error {
if directText != {
return *directText
}
// …
}Originally posted by @ccoVeille in #13 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersrefactoringIssues or PRs to improving code structure, without changing its external behaviorIssues or PRs to improving code structure, without changing its external behavior