You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
615 B
22 lines
615 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package qrcodes
|
|
|
|
// Format selects the text representation used to print QR codes.
|
|
type Format string
|
|
|
|
const (
|
|
// FormatAuto will format QR codes to best fit the capabilities of the
|
|
// [io.Writer].
|
|
FormatAuto Format = "auto"
|
|
|
|
// FormatASCII will format QR codes with only ASCII characters.
|
|
FormatASCII Format = "ascii"
|
|
|
|
// FormatLarge will format QR codes with full block characters.
|
|
FormatLarge Format = "large"
|
|
|
|
// FormatSmall will format QR codes with full and half block characters.
|
|
FormatSmall Format = "small"
|
|
)
|
|
|