format.go 610 B

12345678910111213141516171819202122
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. package qrcodes
  4. // Format selects the text representation used to print QR codes.
  5. type Format string
  6. const (
  7. // FormatAuto will format QR codes to best fit the capabilities of the
  8. // [io.Writer].
  9. FormatAuto Format = "auto"
  10. // FormatASCII will format QR codes with only ASCII characters.
  11. FormatASCII Format = "ascii"
  12. // FormatLarge will format QR codes with full block characters.
  13. FormatLarge Format = "large"
  14. // FormatSmall will format QR codes with full and half block characters.
  15. FormatSmall Format = "small"
  16. )