8 // FprintfIfNotEmpty prints the string value if it's not empty
9 func FprintfIfNotEmpty(w io.Writer, format, value string) (int, error) {
11 return fmt.Fprintf(w, format, value)
16 // FprintfIfTrue prints the boolean value if it's true
17 func FprintfIfTrue(w io.Writer, format string, ok bool) (int, error) {
19 return fmt.Fprintf(w, format, ok)