Skip to content

save a massive number of files in text form without thinking about giving a unique name

License

Notifications You must be signed in to change notification settings

swloopit/golang-massive-write

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

golang-massive-write

save a massive number of files in text form without thinking about giving a unique name

example:

package main

import(
"fmt"
"github.com/swloopit/golang-massive-write"
"encoding/json"
)

func main(){
     type s struct{
          B string
          L string
     }

     k:=new(s)
     k.B="CIAO"
     k.L="BELLA"
     b, _ := json.Marshal(k)
     fmt.Println(massivewrite.BuildRandomWrite("./trydir1/",string(b),"startA",".json"))
     fmt.Println(massivewrite.BuildRandomWrite("./trydir2/","ciao","startB",".json"))

}

About

save a massive number of files in text form without thinking about giving a unique name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages