Created
April 16, 2021 15:01
-
-
Save lissdy/5a745614c1f7bf27c713581ea6cf0748 to your computer and use it in GitHub Desktop.
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
package main | |
import ( | |
"encoding/base64" | |
"io/ioutil" | |
"os" | |
) | |
func main() { | |
fileR, _ := ioutil.ReadFile("/Users/XXX/Downloads/content.txt") | |
decode, _ := base64.StdEncoding.DecodeString(string(fileR)) | |
fileW, _ := os.Create("/Users/XXX/Downloads/mock_ppt.pptx") | |
fileW.Write(decode) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment