remove unnecessary CBox prefix

rewrite sraper/dumper examples
load should not nake a new file
simply the NewScraper() funciton
This commit is contained in:
Amrit Panesar committed 2021-08-10 04:46:12 -07:00
1 parent ff740d65a7
commit 7ebc9d5acc
6 files changed
+80 -60

No files matched your search

+4 -4
View File
@@ -4,26 +4,26 @@ import (
"log"
)
type CBoxServerInfo struct {
type ServerInfo struct {
WebHostID int
BoxID int
BoxTag string
Debug bool
}
func (c *CBoxServerInfo) debugPrint(args ... interface{}) {
func (c *ServerInfo) debugPrint(args ... interface{}) {
if c.Debug {
log.Print(args...)
}
}
func (c *CBoxServerInfo) debugPrintf(format string, args ... interface{}) {
func (c *ServerInfo) debugPrintf(format string, args ... interface{}) {
if c.Debug {
log.Printf(format, args...)
}
}
func (c *CBoxServerInfo) debugPrintln(args ... interface{}) {
func (c *ServerInfo) debugPrintln(args ... interface{}) {
if c.Debug {
log.Println(args...)
}