MCPcopy Index your code
hub / github.com/perkeep/perkeep / newCopyEnv

Function newCopyEnv

pkg/cmdmain/cmdmain.go:428–437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

426}
427
428func newCopyEnv() *env {
429 e := &env{make(map[string]string), nil}
430 for _, kv := range os.Environ() {
431 eq := strings.Index(kv, "=")
432 if eq > 0 {
433 e.set(kv[:eq], kv[eq+1:])
434 }
435 }
436 return e
437}

Callers 1

runAsNewCommandFunction · 0.85

Calls 2

setMethod · 0.95
IndexMethod · 0.80

Tested by

no test coverage detected