1
0
mirror of https://github.com/gogf/gf.git synced 2025-04-05 11:18:50 +08:00

change binary content from hex string to base64 string for package gres

This commit is contained in:
John 2020-05-01 02:35:24 +08:00
parent 4814624cff
commit c8d253eb56
3 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ func PackToGoFile(srcPath, goFilePath, pkgName string, keyPrefix ...string) erro
}
return gfile.PutContents(
goFilePath,
fmt.Sprintf(gstr.Trim(gPACKAGE_TEMPLATE), pkgName, gbase64.EncodeToString(data)),
fmt.Sprintf(gstr.TrimLeft(gPACKAGE_TEMPLATE), pkgName, gbase64.EncodeToString(data)),
)
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long