19 lines
229 B
Go
19 lines
229 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
func main() {
|
|
// Background jobs
|
|
go func() {
|
|
for {
|
|
AiringAnime()
|
|
time.Sleep(time.Duration(2) * time.Second)
|
|
}
|
|
}()
|
|
|
|
// Main loop
|
|
for {
|
|
time.Sleep(time.Duration(10) * time.Second)
|
|
}
|
|
}
|