Files
Amrit Panesar 7ebc9d5acc remove unnecessary CBox prefix
rewrite sraper/dumper examples
load should not nake a new file
simply the NewScraper() funciton
2021-08-10 04:46:12 -07:00

30 lines
454 B
Go

package go_cbox_scraper
import (
"log"
)
type ServerInfo struct {
WebHostID int
BoxID int
BoxTag string
Debug bool
}
func (c *ServerInfo) debugPrint(args ... interface{}) {
if c.Debug {
log.Print(args...)
}
}
func (c *ServerInfo) debugPrintf(format string, args ... interface{}) {
if c.Debug {
log.Printf(format, args...)
}
}
func (c *ServerInfo) debugPrintln(args ... interface{}) {
if c.Debug {
log.Println(args...)
}
}