mono_reporter.go 477 B

123456789101112131415161718192021222324252627282930
  1. package goblin
  2. import ()
  3. type Monochrome struct {
  4. }
  5. func (self *Monochrome) Red(text string) string {
  6. return "!" + text
  7. }
  8. func (self *Monochrome) Gray(text string) string {
  9. return text
  10. }
  11. func (self *Monochrome) Cyan(text string) string {
  12. return text
  13. }
  14. func (self *Monochrome) WithCheck(text string) string {
  15. return ">>>" + text
  16. }
  17. func (self *Monochrome) Green(text string) string {
  18. return text
  19. }
  20. func (self *Monochrome) Yellow(text string) string {
  21. return text
  22. }