From 23eca50904d7c85834f28fc094db2abaf1929179 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 17 May 2024 10:10:57 +0200 Subject: [PATCH] bump major --- docs/docs.go | 4 ++-- go.mod | 2 +- plugin/network.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index c142ade..7f0daa5 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -9,7 +9,7 @@ import ( "sort" "strings" - wp_template "github.com/thegeeklab/wp-plugin-go/v2/template" + plugin_template "github.com/thegeeklab/wp-plugin-go/v3/template" "github.com/urfave/cli/v2" ) @@ -40,7 +40,7 @@ var templateFs embed.FS func ToMarkdown(app *cli.App) (string, error) { var w bytes.Buffer - tpls, err := template.New("cli").Funcs(wp_template.LoadFuncMap()).ParseFS(templateFs, "**/*.tmpl") + tpls, err := template.New("cli").Funcs(plugin_template.LoadFuncMap()).ParseFS(templateFs, "**/*.tmpl") if err != nil { return "", err } diff --git a/go.mod b/go.mod index a1ab9c3..1df2d64 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/thegeeklab/wp-plugin-go/v2 +module github.com/thegeeklab/wp-plugin-go/v3 go 1.22 diff --git a/plugin/network.go b/plugin/network.go index b728bbb..35c4cdb 100644 --- a/plugin/network.go +++ b/plugin/network.go @@ -24,7 +24,7 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "github.com/thegeeklab/wp-plugin-go/v2/trace" + plugin_trace "github.com/thegeeklab/wp-plugin-go/v3/trace" "github.com/urfave/cli/v2" "golang.org/x/net/proxy" ) @@ -126,7 +126,7 @@ func NetworkFromContext(ctx *cli.Context) Network { } if zerolog.GlobalLevel() == zerolog.TraceLevel { - defaultContext = trace.HTTP(defaultContext) + defaultContext = plugin_trace.HTTP(defaultContext) } client := &http.Client{