Format go code

This commit is contained in:
Moritz Marquardt 2024-04-02 21:14:03 +02:00
parent 584ba5c74d
commit 5bf538c5ec
8 changed files with 17 additions and 9 deletions

View File

@ -1,8 +1,9 @@
package cache
import (
"github.com/OrlovEvgeny/go-mcache"
"time"
"github.com/OrlovEvgeny/go-mcache"
)
type MCache struct {

View File

@ -3,9 +3,10 @@ package cache
import (
"context"
"errors"
"time"
"github.com/redis/go-redis/v9"
"github.com/rs/zerolog/log"
"time"
)
type RedisCache struct {

View File

@ -6,11 +6,12 @@ import (
"crypto/x509"
"errors"
"fmt"
"github.com/OrlovEvgeny/go-mcache"
"strconv"
"strings"
"time"
"github.com/OrlovEvgeny/go-mcache"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/challenge/tlsalpn01"

View File

@ -1,10 +1,11 @@
package dns
import (
"github.com/OrlovEvgeny/go-mcache"
"net"
"strings"
"time"
"github.com/OrlovEvgeny/go-mcache"
)
// lookupCacheTimeout specifies the timeout for the DNS lookup cache.

View File

@ -1,10 +1,11 @@
package handler
import (
"github.com/OrlovEvgeny/go-mcache"
"net/http"
"strings"
"github.com/OrlovEvgeny/go-mcache"
"github.com/rs/zerolog/log"
"codeberg.org/codeberg/pages/config"

View File

@ -1,11 +1,12 @@
package handler
import (
"github.com/OrlovEvgeny/go-mcache"
"net/http"
"path"
"strings"
"github.com/OrlovEvgeny/go-mcache"
"codeberg.org/codeberg/pages/html"
"codeberg.org/codeberg/pages/server/cache"
"codeberg.org/codeberg/pages/server/context"

View File

@ -1,12 +1,13 @@
package handler
import (
"github.com/OrlovEvgeny/go-mcache"
"net/http"
"net/http/httptest"
"testing"
"time"
"github.com/OrlovEvgeny/go-mcache"
"codeberg.org/codeberg/pages/config"
"codeberg.org/codeberg/pages/server/cache"
"codeberg.org/codeberg/pages/server/gitea"

View File

@ -5,14 +5,15 @@ import (
"crypto/tls"
"encoding/json"
"fmt"
"github.com/OrlovEvgeny/go-mcache"
"github.com/redis/go-redis/v9"
"net"
"net/http"
"os"
"strings"
"time"
"github.com/OrlovEvgeny/go-mcache"
"github.com/redis/go-redis/v9"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"