14 lines
309 B
Go
14 lines
309 B
Go
//go:build !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
)
|
|
|
|
// runPlatformService 负责运行PlatformService相关处理。
|
|
func runPlatformService(_ string, _ func(context.Context) error) error {
|
|
return fmt.Errorf("当前平台不支持 -service;请使用系统服务管理器启动普通进程")
|
|
}
|