Updated readme's, add prototype function declaration operation
This commit is contained in:
parent
c90d445d7d
commit
19a16d8de0
5 changed files with 137 additions and 4 deletions
|
|
@ -121,3 +121,15 @@ func DeleteVarTable(table VarTable) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func RemoveVar(arg string, table VarTable) {
|
||||
if SyncTablesWithOSEnviron {
|
||||
err := os.Unsetenv(arg)
|
||||
if err != nil {
|
||||
log.Log(log.DEBUG,
|
||||
"Failed to remove "+arg+" from env: "+err.Error(),
|
||||
"vartable")
|
||||
}
|
||||
}
|
||||
delete(*table, arg)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue