style: gofmt files touched by the community fixes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
abaac8eb93
commit
e02441fc4e
13 files changed
+14
-14
No files matched your search
@@ -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,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,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,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,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,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,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,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,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"
|
||||||
|
|||||||
@@ -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,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,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"
|
||||||
|
|||||||
+1
-1
@@ -214,7 +214,7 @@ func ParseJID(arg string) (whatsmeow_types.JID, bool) {
|
|||||||
recipient.User = strings.TrimPrefix(recipient.User, "+")
|
recipient.User = strings.TrimPrefix(recipient.User, "+")
|
||||||
}
|
}
|
||||||
|
|
||||||
if recipient.User == "" &&!strings.Contains(jidString, "@broadcast") {
|
if recipient.User == "" && !strings.Contains(jidString, "@broadcast") {
|
||||||
logger.LogError("Invalid JID. No user specified: %s", jidString)
|
logger.LogError("Invalid JID. No user specified: %s", jidString)
|
||||||
return recipient, false
|
return recipient, false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user