摘要:
package controllers import ( "github.com/astaxie/beego" "service/doc_admin/models" ) type PublicController struct { beego.Controller } func (this *PublicController) SendResponse(code i... 阅读全文
摘要:
package utils import ( "bytes" "log" "os/exec" ) func ExecuteCommand(dir, command string, command_args ...string) (string, error) { cmd := exec.Command(command, command_args...) ... 阅读全文
摘要:
package gzip import ( "compress/gzip" "errors" "fmt" "io" "log" "os" "path/filepath" "strings" "time" "utils" ) func fileToDecompress(gzfile, file string) string { ... 阅读全文
摘要:
package utils import ( "bytes" "crypto/sha1" "encoding/json" "encoding/xml" "errors" "fmt" "io" "io/ioutil" "log" "net/url" "os" "os/exec" "path/filepath" "... 阅读全文
摘要:
import ( "log" ) func ShowError(err error) bool { if err != nil { log.Println(err) } return err != nil } func NoneError(err error) { if ShowError(err) { panic(err) } }... 阅读全文