main.go 413 B

12345678910111213141516171819202122
  1. // package main -- пускач для сервиса
  2. package main
  3. import (
  4. "log"
  5. "os"
  6. "adt/intertnal/fabrics"
  7. )
  8. func main() {
  9. log.Println("main(): adt_service")
  10. serv, err := fabrics.MakeService()
  11. if err != nil {
  12. log.Printf("main(): in create IService, err=\n\t%v\n", err)
  13. os.Exit(1)
  14. }
  15. if err := serv.Run(); err != nil {
  16. log.Printf("main(): in IService.Run, err=\n\t%v\n", err)
  17. os.Exit(2)
  18. }
  19. }