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