File: app_stub.go

package info (click to toggle)
golang-github-apparentlymart-go-userdirs 0.0~git20200915.b0c018a-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184 kB
  • sloc: makefile: 2
file content (20 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build !linux,!windows,!darwin,!aix,!dragonfly,!freebsd,!netbsd,!openbsd,!solaris

// The above build constraint must contain the negation of all of the build
// constraints found in the other app_*.go files, to catch any other OS
// we haven't accounted for.

package userdirs

import (
	"fmt"
	"runtime"
)

func supportedOS() bool {
	return false
}

func forApp(name string, vendor string, bundleID string) Dirs {
	panic(fmt.Sprintf("cannot determine user directories on OS %q", runtime.GOOS))
}