carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build !linux
2
3package dbreads
4
5import (
6 "errors"
7 "fmt"
8 "net"
9 "os"
10)
11
12var errUnsupported = errors.New("db-worker runs only on Linux")
13
14func RunWorker([]string) {
15 fmt.Fprintln(os.Stderr, "db-worker:", errUnsupported)
16 os.Exit(2)
17}
18
19func RunWorkerWith(WorkerOptions) { RunWorker(nil) }
20
21func CarlosUID() (uint32, error) { return 0, errUnsupported }
22
23func StdinConn(*os.File, func() (uint32, error)) (net.Conn, error) { return nil, errUnsupported }
24