12 lines
254 B
Go
12 lines
254 B
Go
|
package conf
|
||
|
|
||
|
import "io/ioutil"
|
||
|
|
||
|
const BackendVersion = string("3.0.0-b")
|
||
|
|
||
|
// WriteVersionLock 将当前版本信息写入 version.lock
|
||
|
func WriteVersionLock() error {
|
||
|
err := ioutil.WriteFile("version.lock", []byte(BackendVersion), 0644)
|
||
|
return err
|
||
|
}
|