refactor: simplify api

This commit is contained in:
debugtalk
2021-09-22 19:44:17 +08:00
parent fe6cca362c
commit 3f9b8be720
4 changed files with 15 additions and 5 deletions

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{}
}