pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/env/env_windows.go (about)

     1  // Package env provides methods for working with environment variables
     2  package env
     3  
     4  // ////////////////////////////////////////////////////////////////////////////////// //
     5  //                                                                                    //
     6  //                         Copyright (c) 2022 ESSENTIAL KAOS                          //
     7  //      Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>     //
     8  //                                                                                    //
     9  // ////////////////////////////////////////////////////////////////////////////////// //
    10  
    11  // ❗ Env is map with environment values
    12  type Env map[string]string
    13  
    14  // ////////////////////////////////////////////////////////////////////////////////// //
    15  
    16  // ❗ Get return key-value map with environment values
    17  func Get() Env {
    18  	panic("UNSUPPORTED")
    19  	return Env{}
    20  }
    21  
    22  // ❗ Which find full path to some app
    23  func Which(name string) string {
    24  	panic("UNSUPPORTED")
    25  	return ""
    26  }
    27  
    28  // ////////////////////////////////////////////////////////////////////////////////// //
    29  
    30  // ❗ Path return path as string slice
    31  func (e Env) Path() []string {
    32  	panic("UNSUPPORTED")
    33  	return nil
    34  }
    35  
    36  // ❗ GetS return environment variable value as string
    37  func (e Env) GetS(name string) string {
    38  	panic("UNSUPPORTED")
    39  	return ""
    40  }
    41  
    42  // ❗ GetI return environment variable value as int
    43  func (e Env) GetI(name string) int {
    44  	panic("UNSUPPORTED")
    45  	return 0
    46  }
    47  
    48  // ❗ GetF return environment variable value as float
    49  func (e Env) GetF(name string) float64 {
    50  	panic("UNSUPPORTED")
    51  	return 0.0
    52  }