Home | History | Annotate | Download | only in os

Lines Matching refs:string

14 // Expand replaces ${var} or $var in the string based on the mapping function.
16 func Expand(s string, mapping func(string) string) string {
29 return string(buf) + s[i:]
32 // ExpandEnv replaces ${var} or $var in the string according to the values
34 // variables are replaced by the empty string.
35 func ExpandEnv(s string) string {
54 // getShellName returns the name that begins the string and the number of bytes
57 func getShellName(s string) (string, int) {
83 func Getenv(key string) string {
94 func LookupEnv(key string) (string, bool) {
101 func Setenv(key, value string) error {
110 func Unsetenv(key string) error {
121 func Environ() []string {