utility.odin 271 B

12345678910111213
  1. package text_table
  2. import "core:io"
  3. import "core:os"
  4. import "core:strings"
  5. stdio_writer :: proc() -> io.Writer {
  6. return io.to_writer(os.stream_from_handle(os.stdout))
  7. }
  8. strings_builder_writer :: proc(b: ^strings.Builder) -> io.Writer {
  9. return strings.to_writer(b)
  10. }