refactor: simplify api

This commit is contained in:
debugtalk
2021-09-22 19:49:26 +08:00
parent 9c977c07ef
commit 5313ea6d6f
4 changed files with 15 additions and 5 deletions
+7 -1
View File
@@ -6,7 +6,13 @@ import (
"github.com/myzhan/boomer"
)
func HttpBoomer() *Boomer {
var defaultBoomer = NewBoomer()
func Run(testcases ...*TestCase) {
defaultBoomer.Run(testcases...)
}
func NewBoomer() *Boomer {
return &Boomer{}
}