10 lines
176 B
Go
10 lines
176 B
Go
|
package util
|
||
|
|
||
|
// helper function to set a string value to "NotSet" if it wasn't actually set
|
||
|
func SetNotSet(v string, s bool) string {
|
||
|
if s {
|
||
|
return v
|
||
|
}
|
||
|
return "Notset"
|
||
|
}
|