style: gofmt files touched by the community fixes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
jfengandClaude Opus 5.5 committed 2026-11-09 13:12:30 -03:00
1 parent abaac8eb93
commit e02441fc4e
12 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -1,11 +1,11 @@
package main package main
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"database/sql" "database/sql"
"flag" "flag"
"fmt" "fmt"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"log" "log"
"net/http" "net/http"
"os" "os"
+1 -1
View File
@@ -1,9 +1,9 @@
package call_service package call_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"errors" "errors"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"time" "time"
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model" instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
+1 -1
View File
@@ -1,9 +1,9 @@
package chat_service package chat_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"errors" "errors"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"time" "time"
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model" instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
+1 -1
View File
@@ -1,9 +1,9 @@
package community_service package community_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"errors" "errors"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"time" "time"
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model" instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
+1 -1
View File
@@ -1,10 +1,10 @@
package group_service package group_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"io" "io"
"net/http" "net/http"
"strings" "strings"
+1 -1
View File
@@ -1,13 +1,13 @@
package instance_service package instance_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"bufio" "bufio"
"context" "context"
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"os" "os"
"path/filepath" "path/filepath"
"slices" "slices"
+1 -1
View File
@@ -1,9 +1,9 @@
package label_service package label_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"errors" "errors"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"time" "time"
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model" instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
+1 -1
View File
@@ -1,10 +1,10 @@
package message_service package message_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"net/http" "net/http"
"os" "os"
"strings" "strings"
+1 -1
View File
@@ -1,9 +1,9 @@
package newsletter_service package newsletter_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"errors" "errors"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"time" "time"
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model" instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
+2 -2
View File
@@ -1,6 +1,6 @@
// Package safemap holds the process-wide maps that are shared across goroutines. // Package safemap holds the process-wide maps that are shared across goroutines.
// //
// WHY THIS EXISTS // # WHY THIS EXISTS
// //
// The three state maps of the process (clientPointer, myClientPointer and // The three state maps of the process (clientPointer, myClientPointer and
// killChannel) are created once at startup and passed BY REFERENCE into eleven // killChannel) are created once at startup and passed BY REFERENCE into eleven
@@ -19,7 +19,7 @@
// within seconds, but every number was offline in the meantime, and it repeats // within seconds, but every number was offline in the meantime, and it repeats
// on every restart that brings up more than a couple of instances at once. // on every restart that brings up more than a couple of instances at once.
// //
// WHY A SEPARATE PACKAGE, AND WHY GENERICS // # WHY A SEPARATE PACKAGE, AND WHY GENERICS
// //
// MyClient lives in pkg/whatsmeow/service. If the safe type lived there, the // MyClient lives in pkg/whatsmeow/service. If the safe type lived there, the
// other ten packages would have to import that package and an import cycle // other ten packages would have to import that package and an import cycle
+1 -1
View File
@@ -1,7 +1,6 @@
package send_service package send_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"bytes" "bytes"
"context" "context"
crypto_rand "crypto/rand" crypto_rand "crypto/rand"
@@ -9,6 +8,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"image" "image"
"image/jpeg" "image/jpeg"
"image/png" "image/png"
+1 -1
View File
@@ -1,10 +1,10 @@
package user_service package user_service
import ( import (
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/evolution-foundation/evolution-go/pkg/safemap"
"io" "io"
"net/http" "net/http"
"time" "time"