summaryrefslogtreecommitdiffhomepage
path: root/util/qrcodes/format.go
blob: 99b58ff747fdeb18450247db090ef5cf4523ca50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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"
)