change: relocate plugin templates

This commit is contained in:
debugtalk
2022-05-29 13:28:48 +08:00
parent 7f134a33d6
commit bc36662f15
7 changed files with 6 additions and 6 deletions
@@ -0,0 +1,13 @@
// NOTE: Generated By hrp {{ .Version }}, DO NOT EDIT!
package main
import (
"github.com/httprunner/funplugin/fungo"
)
func main() {
{{- range $functionName := .FunctionNames }}
fungo.Register("{{ $functionName }}", {{ $functionName }})
{{- end }}
fungo.Serve()
}
@@ -0,0 +1,18 @@
# NOTE: Generated By hrp {{ .Version }}, DO NOT EDIT!
{{ range $import := .Imports }}
{{- $import}}
{{ end }}
{{ range $fromImport := .FromImports }}
{{- $fromImport}}
{{ end }}
{{ range $function := .Functions }}
{{- $function }}
{{ end }}
if __name__ == "__main__":
{{- range $functionName := .FunctionNames }}
funppy.register("{{ $functionName }}", {{ $functionName }})
{{- end }}
funppy.serve()