Starting day10
This commit is contained in:
parent
5bebd71c4e
commit
fb896a8d20
@ -1,11 +1,17 @@
|
||||
package main
|
||||
|
||||
import()
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Parallel code, global vars
|
||||
type Nodes struct {
|
||||
mu sync.Mutex
|
||||
variable type
|
||||
variable int
|
||||
}
|
||||
|
||||
func check(e error) {
|
||||
@ -18,6 +24,7 @@ func PrintAndWait(x ...any) {
|
||||
fmt.Print(x...)
|
||||
fmt.Scanln()
|
||||
}
|
||||
|
||||
// use defer timer("funcname")() when the function you want to
|
||||
// test starts
|
||||
func timer(name string) func() {
|
||||
@ -38,5 +45,4 @@ func main() {
|
||||
for scanner.Scan() {
|
||||
lines = append(lines, scanner.Text())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user