This file contains hidden or 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" | |
| type material func(x, y int) int | |
| func main() { | |
| var explosion material = func(elemX, elemY int) int { | |
| return elemX + elemY | |
| } |
This file contains hidden or 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" | |
| ) | |
| // INTERFACE IS A ACTION | |
| type marathon interface { | |
| satisfaction() int | |
| } |
This file contains hidden or 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" | |
| ) | |
| func numberDoor(number int) { | |
| func() { | |
| fmt.Println(number) |
This file contains hidden or 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 solution | |
| func Solution (A []int, K int) []int { | |
| if len(A) <= 1 || K == 0 { | |
| return A | |
| } | |
| for i := 0; i < K; i++ { | |
| A = append(A[len(A)-1:], A[:len(A)-1]...) |
This file contains hidden or 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
| var cheerio = require('cheerio'); | |
| const $ = cheerio.load('<ul class="cards-wrapper">...</ul>'); | |
| $.html(); | |
| pm.test('Page title should be set', function () { | |
| $('.cards-wrapper').text("640-660"); | |
| }); | |
This file contains hidden or 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
| var cheerio = require('cheerio'); | |
| const $ = cheerio.load(pm.response.text()); | |
| pm.test('Page title should be set', function () { | |
| pm.expect($('title').text()).to.equal('Snapshot'); | |
| pm.expect($('')) | |
| }); | |
| pm.test('Page should have header and footer tags', function () { | |
| pm.expect($('header')).to.exist; | |
| pm.expect($('footer')).to.exist; |
This file contains hidden or 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" | |
| type Developer interface { | |
| Develop() | |
| } | |
| type FrontEnd struct { | |
| Name string |
This file contains hidden or 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" | |
| "github.com/streadway/amqp" | |
| ) | |
| func main() { | |
| fmt.Println("Consumer Application") |
This file contains hidden or 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" | |
| "github.com/streadway/amqp" | |
| ) | |
| func main() { | |
| fmt.Println("Go RabbitMQ Tutorial") |
This file contains hidden or 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" | |
| "github.com/streadway/amqp" | |
| ) | |
| func main() { | |
| fmt.Println("Go RabbitMQ Tutorial") | |
| conn, err := ampq.Dial("ampq://guest:guest@localhost:5672/") | |
| if err != nil { | |
| fmt.Println(err) |