gokins/bdzip.go

13 lines
233 B
Go
Raw Normal View History

2020-10-09 21:32:46 +08:00
package main
import (
"encoding/base64"
"io/ioutil"
)
func main() {
2020-10-09 21:51:11 +08:00
bts, _ := ioutil.ReadFile("uis/vue-admin/dist/dist.zip")
2020-10-09 21:32:46 +08:00
cont := base64.StdEncoding.EncodeToString(bts)
ioutil.WriteFile("bin/zip.txt", []byte(cont), 0644)
}