func (sys *SystemConfig) QR(buf *bytes.Buffer) {
	jsonBytes, err := json.Marshal(sys)
	if err != nil {
		panic(err)
	}
	qrImg, err := qr.Encode(string(jsonBytes), qr.M, qr.Auto)
	if err != nil {
		panic(err)
	}
	qrImg, err = barcode.Scale(qrImg, 200, 200)
	if err != nil {
		panic(err)
	}
	err = png.Encode(buf, qrImg)
	if err != nil {
		panic(err)
	}
}
// QR generates a `data:` URL encoding a PNG image of a QR code that itself encodes the various
// system settings needed by a client to access this service. That is, this will generate a QR code
// that a device app can scan to populate itself with the settings necessary to interact with this
// service instance.
QR generates a `data:` URL encoding a PNG image of a QR code that itself encodes the various
system settings needed by a client to access this service. That is, this will generate a QR code
that a device app can scan to populate itself with the settings necessary to interact with this
service instance.
// QR generates a ` data : ` URL encoding a PNG image of a QR code that itself encodes the various // system settings needed by a client to access this service . That is this will generate a QR code // that a device app can scan to populate itself with the settings necessary to interact with this // service instance .
func (sys *SystemConfig) QR(buf *bytes.Buffer) {
	jsonBytes, err := json.Marshal(sys)
	if err != nil {
		panic(err)
	}
	qrImg, err := qr.Encode(string(jsonBytes), qr.M, qr.Auto)
	if err != nil {
		panic(err)
	}
	qrImg, err = barcode.Scale(qrImg, 200, 200)
	if err != nil {
		panic(err)
	}
	err = png.Encode(buf, qrImg)
	if err != nil {
		panic(err)
	}
}
func ( sys * SystemConfig ) QR ( buf * bytes . Buffer ) { jsonBytes , err := json . Marshal ( sys ) if err != nil { panic ( err ) } qrImg , err := qr . Encode ( string ( jsonBytes ) , qr . M , qr . Auto ) if err != nil { panic ( err ) } qrImg , err = barcode . Scale ( qrImg , 200 , 200 ) if err != nil { panic ( err ) } err = png . Encode ( buf , qrImg ) if err != nil { panic ( err ) } }
QR generates a `data:` URL encoding a PNG image of a QR code that itself encodes the various
system settings needed by a client to access this service.
QR generates a ` data : ` URL encoding a PNG image of a QR code that itself encodes the various system settings needed by a client to access this service .