exported functions use the mutex. Non-exported functions are for internal use and a calling function should use a mutex
(s string)
| 868 | // exported functions use the mutex. Non-exported functions are for internal use |
| 869 | // and a calling function should use a mutex |
| 870 | func (v *View) WriteString(s string) { |
| 871 | _, _ = v.Write([]byte(s)) |
| 872 | } |
| 873 | |
| 874 | func (v *View) writeString(s string) { |
| 875 | v.write([]byte(s)) |