-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
新增base64文件编码、输出分割命令文件
- Loading branch information
Showing
12 changed files
with
129 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
::mac | ||
SET CGO_ENABLED=0 | ||
SET GOOS=darwin | ||
SET GOARCH=amd64 | ||
go build -ldflags="-s -w" -trimpath -o Split_tools_darwin main.go | ||
::m1 | ||
SET CGO_ENABLED=0 | ||
SET GOOS=darwin | ||
SET GOARCH=arm64 | ||
go build -ldflags="-s -w" -trimpath -o Split_tools_m1 main.go | ||
::linux | ||
SET CGO_ENABLED=0 | ||
SET GOOS=linux | ||
SET GOARCH=amd64 | ||
go build -ldflags="-s -w" -trimpath -o Split_tools_linux main.go | ||
::win | ||
SET CGO_ENABLED=0 | ||
SET GOOS=windows | ||
SET GOARCH=amd64 | ||
go build -ldflags="-s -w" -trimpath -o Split_tools.exe main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package cmd | ||
|
||
import "encoding/base64" | ||
|
||
func EnBase64() { | ||
en64 := ReadFile(EncodeFile) | ||
//base64压缩 | ||
sourcestring := base64.StdEncoding.EncodeToString([]byte(en64)) | ||
Write(sourcestring, -1) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.