style: add format and lint (#773)

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong
2023-08-04 21:38:30 +08:00
committed by GitHub
parent 863c52c7bb
commit af00960ad1
132 changed files with 679 additions and 244 deletions
+17 -2
View File
@@ -1,11 +1,26 @@
// Copyright © 2023 OpenIM. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package msgprocessor
import (
"sort"
"strings"
"github.com/OpenIMSDK/protocol/constant"
"github.com/OpenIMSDK/protocol/sdkws"
"google.golang.org/protobuf/proto"
"sort"
"strings"
)
func GetNotificationConversationID(msg *sdkws.MsgData) string {
+4 -2
View File
@@ -16,8 +16,10 @@ package msgprocessor
import "github.com/OpenIMSDK/protocol/constant"
type Options map[string]bool
type OptionsOpt func(Options)
type (
Options map[string]bool
OptionsOpt func(Options)
)
func NewOptions(opts ...OptionsOpt) Options {
options := make(map[string]bool, 11)