MCPcopy Create free account
hub / github.com/boombuler/barcode / String

Method String

qr/encoder.go:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func (e Encoding) String() string {
44 switch e {
45 case Auto:
46 return "Auto"
47 case Numeric:
48 return "Numeric"
49 case AlphaNumeric:
50 return "AlphaNumeric"
51 case Unicode:
52 return "Unicode"
53 }
54 return ""
55}
56
57// Encode returns a QR barcode with the given content and color scheme, error correction level and uses the given encoding
58func EncodeWithColor(content string, level ErrorCorrectionLevel, mode Encoding, color barcode.ColorScheme) (barcode.Barcode, error) {

Callers 2

Test_EncodingStringerFunction · 0.45

Calls

no outgoing calls

Tested by 2

Test_EncodingStringerFunction · 0.36