WriteFile 保存到文件
(path string)
| 80 | |
| 81 | // WriteFile 保存到文件 |
| 82 | func (this *APIConfig) WriteFile(path string) error { |
| 83 | data, err := yaml.Marshal(this) |
| 84 | if err != nil { |
| 85 | return err |
| 86 | } |
| 87 | err = os.WriteFile(path, data, 0666) |
| 88 | return err |
| 89 | } |
no outgoing calls
no test coverage detected