feat: solve day 10 part 2
This commit is contained in:
@@ -19,7 +19,7 @@ func (b button) String() string {
|
||||
return fmt.Sprintf("%v", b.switches)
|
||||
}
|
||||
|
||||
func From(line string) button {
|
||||
func From(line string) Button {
|
||||
buttonRegex := regexp.MustCompile(`\d+`)
|
||||
matches := buttonRegex.FindAllString(line, -1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user