github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/pkg/cmdline/cmdline_other.go (about)

     1  // Copyright 2018 the u-root 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  //go:build !linux
     6  // +build !linux
     7  
     8  package cmdline
     9  
    10  import "os"
    11  
    12  var procCmdLine *CmdLine
    13  
    14  func cmdLine(f string) *CmdLine {
    15  	procCmdLine = &CmdLine{AsMap: map[string]string{}, Err: os.ErrNotExist}
    16  	return procCmdLine
    17  }
    18  
    19  func getCmdLine() *CmdLine {
    20  	return cmdLine("")
    21  }