17 lines
318 B
Go
17 lines
318 B
Go
package utils
|
|
|
|
import (
|
|
"ispctl/cfg"
|
|
"ispctl/service"
|
|
)
|
|
|
|
func CreateUpdateConfig(stringToChange string, configuration *cfg.Config) error {
|
|
answer, err := service.Config.CreateUpdateConfig(stringToChange, configuration)
|
|
if err != nil {
|
|
return err
|
|
} else if answer != nil {
|
|
PrintAnswer(answer)
|
|
}
|
|
return nil
|
|
}
|