mirror of
https://github.com/beego/bee.git
synced 2024-11-24 18:30:53 +00:00
24 lines
472 B
Go
24 lines
472 B
Go
package beegopro
|
|
|
|
import (
|
|
"io/ioutil"
|
|
|
|
"github.com/beego/bee/v2/internal/pkg/utils"
|
|
beeLogger "github.com/beego/bee/v2/logger"
|
|
)
|
|
|
|
var CompareExcept = []string{"@BeeGenerateTime"}
|
|
|
|
func (c *Container) GenConfig() {
|
|
if utils.IsExist(c.BeegoProFile) {
|
|
beeLogger.Log.Fatalf("beego pro toml exist")
|
|
return
|
|
}
|
|
|
|
err := ioutil.WriteFile("beegopro.toml", []byte(BeegoToml), 0644)
|
|
if err != nil {
|
|
beeLogger.Log.Fatalf("write beego pro toml err: %s", err)
|
|
return
|
|
}
|
|
}
|