github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/mobile/exp/sensor/notmobile.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build linux,!android darwin,!arm,!arm64 windows 6 7 package sensor 8 9 import ( 10 "errors" 11 "time" 12 ) 13 14 func enable(t Type, delay time.Duration) error { 15 return errors.New("sensor: no sensors available") 16 } 17 18 func disable(t Type) error { 19 return errors.New("sensor: no sensors available") 20 } 21 22 func destroy() error { 23 return nil 24 }