Golang 1.22

This commit is contained in:
Andrei Pohilko
2024-03-31 11:52:47 +01:00
parent 60e599be46
commit d123bcee93
6 changed files with 70 additions and 64 deletions

View File

@@ -1,10 +1,11 @@
package handlers
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/joomcode/errorx"
"github.com/komodorio/helm-dashboard/pkg/dashboard/objects"
"net/http"
)
const APP = "app"

View File

@@ -3,11 +3,12 @@ package objects
import (
"encoding/json"
"fmt"
log "github.com/sirupsen/logrus"
"net/http"
neturl "net/url"
"os"
"sync"
log "github.com/sirupsen/logrus"
)
var mxArtifactHub sync.Mutex

View File

@@ -3,11 +3,12 @@ package objects
import (
"context"
"errors"
"time"
"github.com/eko/gocache/v3/marshaler"
"github.com/eko/gocache/v3/store"
gocache "github.com/patrickmn/go-cache"
log "github.com/sirupsen/logrus"
"time"
)
type CacheKey = string

View File

@@ -3,6 +3,8 @@ package objects
import (
"context"
"encoding/json"
"sort"
"github.com/joomcode/errorx"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
@@ -23,7 +25,6 @@ import (
cmdutil "k8s.io/kubectl/pkg/cmd/util"
"k8s.io/kubectl/pkg/describe"
"k8s.io/utils/strings/slices"
"sort"
)
type KubeContext struct {