mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
20 lines
262 B
Go
20 lines
262 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/micro/micro/v3/service"
|
|
"github.com/micro/micro/v3/service/logger"
|
|
)
|
|
|
|
func main() {
|
|
go func() {
|
|
for {
|
|
logger.Infof("This is a log line %s", time.Now())
|
|
time.Sleep(1 * time.Second)
|
|
}
|
|
}()
|
|
|
|
service.Run()
|
|
}
|