mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
feat: add build command for plugin
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
{{- range $import := .Imports }}
|
||||
{{ $import -}}
|
||||
{{ end }}
|
||||
)
|
||||
|
||||
{{ range $function := .Functions }}
|
||||
{{ $function }}
|
||||
{{ end }}
|
||||
func main() {
|
||||
{{- range $idx, $name := .FunctionNames }}
|
||||
fungo.Register("{{ index $.FunctionSnakeNames $idx }}", {{ $name }})
|
||||
{{- end }}
|
||||
fungo.Serve()
|
||||
}
|
||||
Reference in New Issue
Block a user