Skip to content

Commit

Permalink
Update asstatusparse.go
Browse files Browse the repository at this point in the history
Co-authored-by: KADOTA, Kyohei <[email protected]>
  • Loading branch information
yseto and lufia authored Sep 27, 2023
1 parent 05c818b commit 05d1c30
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion asstatusparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ func StrToStatus(s string) Status {
}
panic("invalid inputs.")
}

// Parse parses <status>=<status> notation string. <status> is one of:
// - ok
// - warning
// - critical
// - unknown
//
// It can have multiple key-value pairs by comma.
func Parse(arg string) (map[Status]Status, error) {
if arg == "" {
return nil, nil
Expand Down

0 comments on commit 05d1c30

Please sign in to comment.