mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
feat: support creating and calling custom functions with go plugin
This commit is contained in:
14
examples/plugin/debugtalk.go
Normal file
14
examples/plugin/debugtalk.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
)
|
||||
|
||||
func init() {
|
||||
log.Println("plugin init function called")
|
||||
}
|
||||
|
||||
func Concatenate(a int, b string, c float64) string {
|
||||
return fmt.Sprintf("%v_%v_%v", a, b, c)
|
||||
}
|
||||
Reference in New Issue
Block a user