would be smart if I actually tested if the damn thing built first
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
d9eb4b1597
commit
e268ccd0be
11
main.go
11
main.go
|
@ -1,13 +1,13 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "log"
|
import "log"
|
||||||
import "fmt"
|
|
||||||
import "os"
|
import "os"
|
||||||
import "time"
|
import "time"
|
||||||
import "reflect"
|
import "reflect"
|
||||||
// import "os/signal"
|
// import "os/signal"
|
||||||
// import "syscall"
|
// import "syscall"
|
||||||
// import "runtime"
|
// import "runtime"
|
||||||
|
// import "fmt"
|
||||||
|
|
||||||
// this is the king of dns libraries
|
// this is the king of dns libraries
|
||||||
import "github.com/miekg/dns"
|
import "github.com/miekg/dns"
|
||||||
|
@ -95,15 +95,6 @@ func lookupAAAA(hostname string) string {
|
||||||
func main() {
|
func main() {
|
||||||
go handleErrors()
|
go handleErrors()
|
||||||
|
|
||||||
// OMG I'm an idiot. of course this does't work
|
|
||||||
// it's easy to loose your mind trying to make this part of the code work
|
|
||||||
// epoch := fmt.Sprintf("%d", time.Now().Unix())
|
|
||||||
// shell.Write("./resources/BUILDDATE", epoch)
|
|
||||||
|
|
||||||
// ref := shell.Run("git rev-list -1 HEAD")
|
|
||||||
// shell.Write("./resources/BUILDREF", ref)
|
|
||||||
// for {}
|
|
||||||
|
|
||||||
// This puts all the files in that directory in the binary
|
// This puts all the files in that directory in the binary
|
||||||
// This directory includes the default config file if there is not already one
|
// This directory includes the default config file if there is not already one
|
||||||
packrBox = packr.NewBox("./resources")
|
packrBox = packr.NewBox("./resources")
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
d9eb4b1597a13c0d78cf454972df5d2d58b68483
|
Loading…
Reference in New Issue