package util import ( "testing" ) func TestInfof(t *testing.T) { Debugf("hello world : %s", "Debugf") Infof("hello world : %s", "Infof") Warnf("hello world : %s", "Warnf") Errorf("hello world : %s", "Errorf") //Fatalf("hello world : %s", "Fatalf") //Painc(errors.New("异常")) }