github.com/la5nta/wl2k-go@v0.11.8/rigcontrol/hamlib/not_libhamlib.go (about)

     1  // Copyright 2015 Martin Hebnes Pedersen (LA5NTA). All rights reserved.
     2  // Use of this source code is governed by the MIT-license that can be
     3  // found in the LICENSE file.
     4  
     5  // +build !cgo, !libhamlib
     6  
     7  package hamlib
     8  
     9  import "errors"
    10  
    11  var errNotAvailable = errors.New("Not available in this build")
    12  
    13  // OpenSerialURI is here for compatibility (use build tag 'libhamlib').
    14  func OpenSerialURI(uri string) (Rig, error) { return nil, errNotAvailable }
    15  
    16  // Rigs is here for compatibility (use build tag 'libhamlib').
    17  func Rigs() map[RigModel]string { return map[RigModel]string{} }