This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myInfo = { | |
name: 'Rabin Gaire', | |
age: 12, | |
address: 'Gulmi, Nepal' | |
}; | |
let updatedInfo = { age: 21, address: 'Kathmandu, Nepal', ...myInfo}; | |
console.log(updatedInfo); | |
console.log(myInfo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myInfo = { | |
name: 'Rabin Gaire', | |
age: 12, | |
address: 'Gulmi, Nepal' | |
}; | |
let updatedInfo = {...myInfo, age: 21, address: 'Kathmandu, Nepal'}; | |
console.log(updatedInfo); // { name: 'Rabin Gaire', age: 21, address: 'Kathmandu, Nepal' } | |
console.log(myInfo); // { name: 'Rabin Gaire', age: 12, address: 'Gulmi, Nepal' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myInfo = { | |
name: 'Rabin Gaire', | |
age: 12, | |
address: 'Gulmi, Nepal' | |
}; | |
let updatedInfo = myInfo; | |
updatedInfo.age = 21; | |
updatedInfo.address = 'Kathmandu Nepal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myInfo = { | |
name: 'Rabin Gaire', | |
age: 12, | |
address: 'Gulmi, Nepal' | |
}; | |
let updatedInfo = Object.assign({}, myInfo); | |
updatedInfo.age = 21; | |
updatedInfo.address = 'Kathmandu Nepal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/csv" | |
"log" | |
"os" | |
"strconv" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AOCRT::NPI: Found all the non-indexed ISA masks | |
AOCRT::NPI: Found all the indexed ISA masks | |
SwiftASTContextForExpressions::SetTriple("x86_64h-apple-macosx") setting to "x86_64-apple-macosx10.14.4" | |
SwiftASTContextForExpressions::CreateInstance(Target) | |
SwiftASTContext("dyld")::SetTriple("x86_64-apple-macosx10.14.0") setting to "x86_64-apple-macosx10.14.0" | |
SwiftASTContext("libcache.dylib")::SetTriple("x86_64-apple-macosx10.14.0") setting to "x86_64-apple-macosx10.14.0" | |
SwiftASTContext("repl_swift")::SetTriple("x86_64-apple-macosx10.14.4") setting to "x86_64-apple-macosx10.14.4" | |
SwiftASTContext("repl_swift")::SetTriple("x86_64-apple-macosx10.14.4") setting to "x86_64-apple-macosx10.14.4" | |
SwiftASTContext("libSystem.B.dylib")::SetTriple("x86_64-apple-macosx10.14.0") setting to "x86_64-apple-macosx10.14.0" | |
SwiftASTContext("libSystem.B.dylib")::SetTriple("x86_64-apple-macosx10.14.0") setting to "x86_64-apple-macosx10.14.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rabbitmq | |
import "github.com/streadway/amqp" | |
// Config parameters for queue service | |
type Config struct { | |
URL string | |
Exchange string | |
QueueName string | |
RoutingKey string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rabbitmq | |
import ( | |
"testing" | |
"github.com/stretchr/testify/assert" | |
"github.com/stretchr/testify/suite" | |
) | |
// Define the custom testify suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:alpine | |
RUN apk add --no-cache make curl gcc libc-dev | |
WORKDIR /app | |
COPY go.mod go.sum ./ | |
RUN go mod download | |
COPY . . |
OlderNewer