Commit ce3af21 Gabriel Cataldo
committed
1 parent b2c536c commit ce3af21 Copy full SHA for ce3af21
File tree 10 files changed +60
-59
lines changed
10 files changed +60
-59
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "github.com/GabrielHCataldo/go-aws-sqs/sqs"
5
- "github.com/GabrielHCataldo/go-aws-sqs/sqs/option"
4
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs"
5
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs/option"
6
6
"github.com/GabrielHCataldo/go-logger/logger"
7
7
"os"
8
8
"os/signal"
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ package main
2
2
3
3
import (
4
4
"context"
5
- "github.com/GabrielHCataldo/go-aws-sqs/sqs"
6
- "github.com/GabrielHCataldo/go-aws-sqs/sqs/option"
5
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs"
6
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs/option"
7
7
"github.com/GabrielHCataldo/go-logger/logger"
8
8
"os"
9
9
"time"
Original file line number Diff line number Diff line change 1
- module github.com/GabrielHCataldo/go-aws-sqs
1
+ module github.com/GabrielHCataldo/go-aws-sqs-template
2
2
3
3
go 1.21.3
4
4
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ package sqs
3
3
import (
4
4
"context"
5
5
"fmt"
6
- "github.com/GabrielHCataldo/go-aws-sqs/internal/client"
7
- "github.com/GabrielHCataldo/go-aws-sqs/internal/util"
8
- "github.com/GabrielHCataldo/go-aws-sqs/sqs/option"
6
+ "github.com/GabrielHCataldo/go-aws-sqs-template /internal/client"
7
+ "github.com/GabrielHCataldo/go-aws-sqs-template /internal/util"
8
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs/option"
9
9
"github.com/aws/aws-sdk-go-v2/service/sqs"
10
10
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
11
11
"reflect"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package sqs
3
3
import (
4
4
"context"
5
5
"errors"
6
- "github.com/GabrielHCataldo/go-aws-sqs/sqs/option"
6
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs/option"
7
7
"github.com/GabrielHCataldo/go-logger/logger"
8
8
"os"
9
9
"strconv"
@@ -1093,5 +1093,5 @@ func cancelMessageMoveTaskTest() {
1093
1093
}
1094
1094
1095
1095
func getSqsCreateQueueTest () string {
1096
- return "go-aws-sqs-test-create-queue-" + strconv .Itoa (int (time .Now ().UnixNano ()))
1096
+ return "go-aws-sqs-template- test-create-queue-" + strconv .Itoa (int (time .Now ().UnixNano ()))
1097
1097
}
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ package sqs
2
2
3
3
import (
4
4
"context"
5
- "github.com/GabrielHCataldo/go-aws-sqs/internal/client"
6
- "github.com/GabrielHCataldo/go-aws-sqs/internal/util"
7
- "github.com/GabrielHCataldo/go-aws-sqs/sqs/option"
5
+ "github.com/GabrielHCataldo/go-aws-sqs-template /internal/client"
6
+ "github.com/GabrielHCataldo/go-aws-sqs-template /internal/util"
7
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs/option"
8
8
"github.com/aws/aws-sdk-go-v2/service/sqs"
9
9
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
10
10
"time"
Original file line number Diff line number Diff line change 1
1
package option
2
2
3
3
import (
4
- "github.com/GabrielHCataldo/go-aws-sqs/internal/util"
4
+ "github.com/GabrielHCataldo/go-aws-sqs-template /internal/util"
5
5
"reflect"
6
6
"time"
7
7
)
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ package sqs
3
3
import (
4
4
"context"
5
5
"errors"
6
- "github.com/GabrielHCataldo/go-aws-sqs/internal/client"
7
- "github.com/GabrielHCataldo/go-aws-sqs/internal/util"
8
- "github.com/GabrielHCataldo/go-aws-sqs/sqs/option"
6
+ "github.com/GabrielHCataldo/go-aws-sqs-template /internal/client"
7
+ "github.com/GabrielHCataldo/go-aws-sqs-template /internal/util"
8
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs/option"
9
9
"github.com/aws/aws-sdk-go-v2/aws"
10
10
"github.com/aws/aws-sdk-go-v2/service/sqs"
11
11
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
@@ -187,16 +187,16 @@ func convertReflectToMessageAttributeValue(v reflect.Value) *types.MessageAttrib
187
187
if v .Kind () == reflect .Pointer || v .Kind () == reflect .Interface {
188
188
v = v .Elem ()
189
189
}
190
- result := types.MessageAttributeValue {}
190
+ var result * types.MessageAttributeValue
191
191
dataType := util .GetDataType (v .Interface ())
192
- result .DataType = & dataType
193
192
if dataType == "String" || dataType == "Number" {
193
+ result = & types.MessageAttributeValue {}
194
+ result .DataType = & dataType
194
195
strValue := util .ConvertToString (v .Interface ())
195
196
if len (strValue ) == 0 {
196
197
return nil
197
198
}
198
199
result .StringValue = & strValue
199
- return & result
200
200
}
201
- return nil
201
+ return result
202
202
}
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ package sqs
2
2
3
3
import (
4
4
"context"
5
- "github.com/GabrielHCataldo/go-aws-sqs/internal/client"
6
- "github.com/GabrielHCataldo/go-aws-sqs/sqs/option"
5
+ "github.com/GabrielHCataldo/go-aws-sqs-template /internal/client"
6
+ "github.com/GabrielHCataldo/go-aws-sqs-template /sqs/option"
7
7
"github.com/aws/aws-sdk-go-v2/service/sqs"
8
8
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
9
9
)
You can’t perform that action at this time.
0 commit comments