chore: reformat go files

This commit is contained in:
Lykin
2026-02-27 17:58:41 +08:00
parent df837eae3d
commit a10cad31f6
11 changed files with 21 additions and 10 deletions
+2 -1
View File
@@ -3,12 +3,13 @@ package services
import (
"bytes"
"encoding/json"
"github.com/google/uuid"
"net/http"
"runtime"
"strings"
"sync"
"tinyrdm/backend/storage"
"github.com/google/uuid"
)
// google analytics service
+2 -1
View File
@@ -2,11 +2,12 @@ package storage
import (
"errors"
"gopkg.in/yaml.v3"
"slices"
"sync"
"tinyrdm/backend/consts"
"tinyrdm/backend/types"
"gopkg.in/yaml.v3"
)
type ConnectionsStorage struct {
+2 -1
View File
@@ -2,13 +2,14 @@ package storage
import (
"fmt"
"gopkg.in/yaml.v3"
"log"
"reflect"
"strings"
"sync"
"tinyrdm/backend/consts"
"tinyrdm/backend/types"
"gopkg.in/yaml.v3"
)
type PreferencesStorage struct {
+2 -1
View File
@@ -2,9 +2,10 @@ package convutil
import (
"bytes"
"github.com/andybalholm/brotli"
"io"
"strings"
"github.com/andybalholm/brotli"
)
type BrotliConvert struct{}
+2 -1
View File
@@ -1,9 +1,10 @@
package convutil
import (
"github.com/vrischmann/userdir"
"os"
"path"
"github.com/vrischmann/userdir"
)
func writeExecuteFile(content []byte, filename string) (string, error) {
+2 -1
View File
@@ -2,9 +2,10 @@ package convutil
import (
"bytes"
"github.com/klauspost/compress/flate"
"io"
"strings"
"github.com/klauspost/compress/flate"
)
type DeflateConvert struct{}
+2 -1
View File
@@ -2,9 +2,10 @@ package convutil
import (
"bytes"
"github.com/klauspost/compress/gzip"
"io"
"strings"
"github.com/klauspost/compress/gzip"
)
type GZipConvert struct{}
+2 -1
View File
@@ -2,8 +2,9 @@ package convutil
import (
"bytes"
"github.com/pierrec/lz4/v4"
"io"
"github.com/pierrec/lz4/v4"
)
type LZ4Convert struct{}
+1
View File
@@ -2,6 +2,7 @@ package convutil
import (
"encoding/json"
"github.com/vmihailenco/msgpack/v5"
)
+2 -1
View File
@@ -2,9 +2,10 @@ package convutil
import (
"bytes"
"github.com/klauspost/compress/zstd"
"io"
"strings"
"github.com/klauspost/compress/zstd"
)
type ZStdConvert struct{}
+2 -1
View File
@@ -3,11 +3,12 @@ package redis
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
"log"
"net"
"strconv"
"time"
"github.com/redis/go-redis/v9"
)
type execCallback func(string, int64)