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:
parent
4814624cff
commit
c8d253eb56
@ -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)),
|
||||
)
|
||||
}
|
||||
|
||||
|
2
os/gres/testdata/data/data.go
vendored
2
os/gres/testdata/data/data.go
vendored
File diff suppressed because one or more lines are too long
4
os/gres/testdata/testdata.go
vendored
4
os/gres/testdata/testdata.go
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user