mirror of
https://github.com/thegeeklab/wp-plugin-go.git
synced 2024-11-21 04:00:40 +00:00
bump major
This commit is contained in:
parent
6be7f2b898
commit
23eca50904
@ -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
2
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
|
||||
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user