()
| 41 | } |
| 42 | |
| 43 | func (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 |
| 58 | func EncodeWithColor(content string, level ErrorCorrectionLevel, mode Encoding, color barcode.ColorScheme) (barcode.Barcode, error) { |
no outgoing calls