SyncFprintf - Synchronized fmt.Fprintf Ignores errors from Fprintf. Prints to stdout if w is nil
(w io.Writer, format string, a ...any)
| 793 | // |
| 794 | // Prints to stdout if w is nil |
| 795 | func SyncFprintf(w io.Writer, format string, a ...any) { |
| 796 | if w == nil || w == os.Stdout { |
| 797 | SyncPrintf(format, a...) |
| 798 | } else { |
| 799 | StdoutMutex.Lock() |
| 800 | defer StdoutMutex.Unlock() |
| 801 | _, _ = fmt.Fprintf(w, format, a...) |
| 802 | } |
| 803 | } |
| 804 | |
| 805 | // SizeString make string representation of size for output |
| 806 | // |
searching dependent graphs…