From 893123ce21c5bf74880fd0ff79d587cbcc1789cf Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Fri, 10 May 2019 02:17:32 -0400 Subject: building the skeleton --- types.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 types.go (limited to 'types.go') diff --git a/types.go b/types.go new file mode 100644 index 0000000..a8f027a --- /dev/null +++ b/types.go @@ -0,0 +1,17 @@ +package main + +import "regexp" + +type configuration struct { + port string + validPath *regexp.Regexp + quietLogging bool + fileLogging bool + logFile string +} + +var confObj = &configuration{} + +func initConfig() { + confObj.validPath = regexp.MustCompile("^/(api)/(plain)/(tweets|users|tags|mentions)") +} -- cgit 1.4.1-2-gfad0