// vim: shiftwidth=4 tabstop=4 noexpandtab package main import ( "log" ) var ( config RuntimeConfig camera Camera ) func main() { // disable log timestamp because systemd takes care of that log.SetFlags(0) // parse flags and read config config = GetRuntimeConfig() // create camera camera = NewCamera() // start goroutines server := NewWebServer() go server.run() // http server / user interface // run camera camera.run() }