Commit 068274c6 authored by owlo's avatar owlo

fiddle

parent 949299b3
......@@ -823,8 +823,9 @@ func main() {
name := UIDMaker("post")
file, err := os.Create(name)
defer file.Close()
numBytes, err := file.Write(signedContent)
numBytes, err := file.WriteString(string(signedContent))
if err != nil {
fmt.Println("ERROR CREATING FILE")
panic(err)
}else {
fmt.Println("Wrote ", numBytes, " bytes")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment