Re: [go-nuts] Handling multiple things happening at the same time

2016-09-07 Thread Asit Dhal
Hi Matt, You should run the cronjob in a separate process and the FileServer in another process. mux := http.NewServeMux() fs := http.FileServer(http.Dir("fileserver")) mux.Handle("/", fs) http.ListenAndServe(":8080", mux) The FileServer package provided by the standard libra

[go-nuts] Handling multiple things happening at the same time

2016-09-07 Thread Matt Davies
Evening all We're writing a new app and we'd like it to do a number of things at the same time. We're planning on using gocron https://github.com/jasonlvhit/gocron to schedule grabbing some files from another source, then reformatting those files and placing them into a folder in the app. Tha