client.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // This file is auto-generated, don't edit it. Thanks.
  2. /**
  3. * This is a console module
  4. */
  5. package client
  6. import (
  7. "fmt"
  8. "os"
  9. "github.com/alibabacloud-go/tea/tea"
  10. )
  11. /**
  12. * Console val with log level into stdout
  13. * @param val the printing string
  14. * @return void
  15. * @example [LOG] tea console example
  16. */
  17. func Log(val *string) {
  18. fmt.Printf("[LOG] %s\n", tea.StringValue(val))
  19. }
  20. /**
  21. * Console val with info level into stdout
  22. * @param val the printing string
  23. * @return void
  24. * @example [INFO] tea console example
  25. */
  26. func Info(val *string) {
  27. fmt.Printf("[INFO] %s\n", tea.StringValue(val))
  28. }
  29. /**
  30. * Console val with warning level into stdout
  31. * @param val the printing string
  32. * @return void
  33. * @example [WARNING] tea console example
  34. */
  35. func Warning(val *string) {
  36. fmt.Printf("[WARNING] %s\n", tea.StringValue(val))
  37. }
  38. /**
  39. * Console val with debug level into stdout
  40. * @param val the printing string
  41. * @return void
  42. * @example [DEBUG] tea console example
  43. */
  44. func Debug(val *string) {
  45. fmt.Printf("[DEBUG] %s\n", tea.StringValue(val))
  46. }
  47. /**
  48. * Console val with error level into stderr
  49. * @param val the printing string
  50. * @return void
  51. * @example [ERROR] tea console example
  52. */
  53. func Error(val *string) {
  54. fmt.Fprintf(os.Stderr, "[ERROR] %s\n", tea.StringValue(val))
  55. }