{"modulePath":"github.com/RedAFD/code-core","version":"v1.8.3","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package minwinsvc\n\nPackage minwinsvc is a minimal non-invasive windows only service stub.\n\nImport to allow running as a windows service.\n\n\timport _ \"github.com/kardianos/minwinsvc\"\n\nThis will detect if running as a windows service and install required callbacks for windows.\n\n## Functions\n\n```go\nfunc SetOnExit(f func())\n```\nSetOnExit sets the function to be called when the windows service requests an exit. If this is not called, or if it is called where f == nil, then it defaults to calling \"os.Exit(0)\".\n\n","path":"github.com/RedAFD/code-core/modules/minwinsvc","name":"minwinsvc","synopsis":"Package minwinsvc is a minimal non-invasive windows only service stub.","isRedistributable":true}
