mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2026-04-22 16:07:06 +08:00
chore: reformat go files
This commit is contained in:
@@ -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,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,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,9 +2,10 @@ package convutil
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/andybalholm/brotli"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"github.com/andybalholm/brotli"
|
||||
)
|
||||
|
||||
type BrotliConvert struct{}
|
||||
|
||||
@@ -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,9 +2,10 @@ package convutil
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/klauspost/compress/flate"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"github.com/klauspost/compress/flate"
|
||||
)
|
||||
|
||||
type DeflateConvert struct{}
|
||||
|
||||
@@ -2,9 +2,10 @@ package convutil
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/klauspost/compress/gzip"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"github.com/klauspost/compress/gzip"
|
||||
)
|
||||
|
||||
type GZipConvert struct{}
|
||||
|
||||
@@ -2,8 +2,9 @@ package convutil
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/pierrec/lz4/v4"
|
||||
"io"
|
||||
|
||||
"github.com/pierrec/lz4/v4"
|
||||
)
|
||||
|
||||
type LZ4Convert struct{}
|
||||
|
||||
@@ -2,6 +2,7 @@ package convutil
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/vmihailenco/msgpack/v5"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@ package convutil
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/klauspost/compress/zstd"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"github.com/klauspost/compress/zstd"
|
||||
)
|
||||
|
||||
type ZStdConvert struct{}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user