0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-23 06:40:40 +00:00

bump major

This commit is contained in:
Robert Kaussow 2024-05-17 10:10:57 +02:00
parent 6be7f2b898
commit 23eca50904
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 5 additions and 5 deletions

View File

@ -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
}

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/thegeeklab/wp-plugin-go/v2
module github.com/thegeeklab/wp-plugin-go/v3
go 1.22

View File

@ -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{