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 "os" | |
| import "bufio" | |
| import "io/ioutil" | |
| import "regexp" | |
| import "strings" | |
| // Copy Podfile.lock contents into input.txt in same dir as script |
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
| protocol Increaser { | |
| var value: Int { get set } | |
| mutating func increase() | |
| } | |
| func doIncrease(var myIncreaser: Increaser) { // Parameter 'myIncreaser' was never mutated; consider | |
| myIncreaser.increase() // changing to 'let' constant | |
| myIncreaser.value | |
| } | |
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
| type countable interface { | |
| HoursWorked() time.Duration | |
| } | |
| type WorkDay struct { | |
| StartTime time.Time | |
| EndTime time.Time | |
| } | |
| type WorkWeek struct { |