mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 19:39:44 +08:00
19 lines
522 B
Go
19 lines
522 B
Go
package main
|
|
|
|
import (
|
|
plugin "github.com/httprunner/func-plugin/go"
|
|
)
|
|
|
|
// register functions and build to plugin binary
|
|
func main() {
|
|
plugin.Register("sum_ints", SumInts)
|
|
plugin.Register("sum_two_int", SumTwoInt)
|
|
plugin.Register("sum", Sum)
|
|
plugin.Register("sum_two_string", SumTwoString)
|
|
plugin.Register("sum_strings", SumStrings)
|
|
plugin.Register("concatenate", Concatenate)
|
|
plugin.Register("setup_hook_example", SetupHookExample)
|
|
plugin.Register("teardown_hook_example", TeardownHookExample)
|
|
plugin.Serve()
|
|
}
|