Initial QSfera import

This commit is contained in:
Курнат Андрей
2026-06-07 10:20:04 +03:00
commit 2315f25754
16485 changed files with 4826827 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
package stdio
import (
"fmt"
"io"
"strings"
)
// Fprint to writer, will ignore error
func Fprint(w io.Writer, a ...any) {
_, _ = fmt.Fprint(w, a...)
}
// Fprintf to writer, will ignore error
func Fprintf(w io.Writer, tpl string, vs ...any) {
_, _ = fmt.Fprintf(w, tpl, vs...)
}
// Fprintln to writer, will ignore error
func Fprintln(w io.Writer, a ...any) {
_, _ = fmt.Fprintln(w, a...)
}
// WriteStringTo a writer, will ignore error
func WriteStringTo(w io.Writer, ss ...string) {
if len(ss) == 1 {
_, _ = io.WriteString(w, ss[0])
} else if len(ss) > 1 {
_, _ = io.WriteString(w, strings.Join(ss, ""))
}
}