Skip to content

Commit

Permalink
adding comments to options
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Nov 24, 2022
1 parent fb6067e commit 76b9370
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions slice_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ func ToString(slice []string) string {
}

type Options struct {
// IsFromFile determines if the values are from file
IsFromFile func(string) bool
IsEmpty func(string) bool
Normalize func(string) string
RawString bool
// IsEmpty determines if the values are empty
IsEmpty func(string) bool
// Normalize the value (eg. removing trailing spaces)
Normalize func(string) string
// RawString determines if the value should be considered as is
RawString bool
}

// ToStringSlice converts a value to string slice based on options
Expand Down

0 comments on commit 76b9370

Please sign in to comment.