refactor: hrp build

This commit is contained in:
debugtalk
2022-05-28 15:51:21 +08:00
parent 43c800783a
commit ebc0a3768c
30 changed files with 92 additions and 398 deletions

View File

@@ -2,8 +2,6 @@ package main
import (
"fmt"
"github.com/httprunner/funplugin/fungo"
)
func SumTwoInt(a, b int) int {
@@ -41,17 +39,6 @@ func TeardownHookExample(args string) string {
return fmt.Sprintf("step name: %v, teardown...", args)
}
func GetVersion() string {
return fungo.Version
}
func main() {
fungo.Register("get_version", GetVersion)
fungo.Register("sum_ints", SumInts)
fungo.Register("sum_two_int", SumTwoInt)
fungo.Register("sum_two", SumTwoInt)
fungo.Register("sum", Sum)
fungo.Register("setup_hook_example", SetupHookExample)
fungo.Register("teardown_hook_example", TeardownHookExample)
fungo.Serve()
func GetUserAgent() string {
return "hrp/fungo"
}