Start laying out the structure of gooni

This commit is contained in:
Arturo Filastò
2018-02-07 20:02:18 +02:00
commit 7327e1ff7f
22 changed files with 529 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package util
import (
"fmt"
"os"
"github.com/openobservatory/gooni/internal/colors"
)
// Log outputs a log message.
func Log(msg string, v ...interface{}) {
fmt.Printf(" %s\n", colors.Purple(fmt.Sprintf(msg, v...)))
}
// Fatal error
func Fatal(err error) {
fmt.Fprintf(os.Stderr, "\n %s %s\n\n", colors.Red("Error:"), err)
os.Exit(1)
}