put common init code in honk.go
This commit is contained in:
parent
761929ec47
commit
4f386cf558
|
@ -23,10 +23,6 @@ import (
|
||||||
"humungus.tedunangst.com/r/webs/gate"
|
"humungus.tedunangst.com/r/webs/gate"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
|
||||||
notrand.Seed(time.Now().Unix())
|
|
||||||
}
|
|
||||||
|
|
||||||
type Doover struct {
|
type Doover struct {
|
||||||
ID int64
|
ID int64
|
||||||
When time.Time
|
When time.Time
|
||||||
|
|
5
honk.go
5
honk.go
|
@ -20,12 +20,17 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"log"
|
"log"
|
||||||
|
notrand "math/rand"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
notrand.Seed(time.Now().Unix())
|
||||||
|
}
|
||||||
|
|
||||||
type WhatAbout struct {
|
type WhatAbout struct {
|
||||||
ID int64
|
ID int64
|
||||||
Name string
|
Name string
|
||||||
|
|
Loading…
Reference in New Issue