3e45e5b420
QR codes are used by `tailscale up --qr` to provide an easy way to open a web-page without transcribing a difficult URI. However, there’s no need for this feature if the client will never be called interactively. So this PR adds the `ts_omit_qrcodes` build tag. Updates #18182 Signed-off-by: Simon Law <sfllaw@tailscale.com>
17 lines
308 B
Go
17 lines
308 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ts_omit_qrcodes
|
|
|
|
package qrcodes
|
|
|
|
import "io"
|
|
|
|
func Fprintln(w io.Writer, format Format, s string) (n int, err error) {
|
|
panic("omitted")
|
|
}
|
|
|
|
func EncodePNG(s string, size int) ([]byte, error) {
|
|
panic("omitted")
|
|
}
|