...

Source file src/github.com/tklauser/go-sysconf/sysconf_unsupported.go

Documentation: github.com/tklauser/go-sysconf

     1  // Copyright 2021 Tobias Klauser. 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  //go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
     6  // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
     7  
     8  package sysconf
     9  
    10  import (
    11  	"fmt"
    12  	"runtime"
    13  )
    14  
    15  func sysconf(name int) (int64, error) {
    16  	return -1, fmt.Errorf("unsupported on %s", runtime.GOOS)
    17  }
    18  

View as plain text