remove unnecessary CBox prefix
rewrite sraper/dumper examples load should not nake a new file simply the NewScraper() funciton
This commit is contained in:
6 files changed
+80
-60
No files matched your search
+4
-4
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user