You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package enum
-
- type State uint32
-
- const (
- pending State = 0
- running State = 1
- suspended State = 2
- completed State = 3
- )
-
- func (s State) String() string {
- switch s {
- case pending:
- return "Pending"
- case running:
- return "Running"
- case suspended:
- return "Suspended"
- case completed:
- return "Completed"
- default:
- return ""
- }
- }
|