60 Star 429 Fork 120

GVPGokins / gokins

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
bdconts.go 582 Bytes
Copy Edit Web IDE Raw Blame History
ryanmao authored 2020-12-15 10:25 . fix: pr+bugs修复
package main
import (
"encoding/base64"
"fmt"
"io/ioutil"
)
func main() {
bdsqls()
bdzip()
}
func bdsqls() {
bts, _ := ioutil.ReadFile("doc/sys.sql")
ioutil.WriteFile("comm/dbfl.go",
[]byte(fmt.Sprintf("package comm\n\nconst sqls = `\n%s\n`", string(bts))),
0644)
println("sql insert go ok!!!")
}
func bdzip() {
bts, _ := ioutil.ReadFile("uis/vue-admin/dist/dist.zip")
cont := base64.StdEncoding.EncodeToString(bts)
ioutil.WriteFile("comm/vuefl.go",
[]byte(fmt.Sprintf("package comm\n\nconst StaticPkg = \"%s\"", cont)),
0644)
println("ui insert go ok!!!")
}

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/gokins/gokins.git
git@gitee.com:gokins/gokins.git
gokins
gokins
gokins
master

Search