Skip to content

Commit 52262b1

Browse files
committed
LoadTest.Status String implementation
1 parent 758c946 commit 52262b1

File tree

2 files changed

+26
-22
lines changed

2 files changed

+26
-22
lines changed

.idea/workspace.xml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

loadtest.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ func (s StatusType) MarshalJSON() ([]byte, error) {
6868
return []byte(fmt.Sprintf(`"%s"`, statusTypes[s])), nil
6969
}
7070

71+
func (s StatusType) String() string {
72+
return statusTypes[s]
73+
}
74+
7175
const (
7276
StatusStopped StatusType = iota
7377
StatusSpawning

0 commit comments

Comments
 (0)