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

Method getEncoder

qr/encoder.go:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27)
28
29func (e Encoding) getEncoder() encodeFn {
30 switch e {
31 case Auto:
32 return encodeAuto
33 case Numeric:
34 return encodeNumeric
35 case AlphaNumeric:
36 return encodeAlphaNumeric
37 case Unicode:
38 return encodeUnicode
39 }
40 return nil
41}
42
43func (e Encoding) String() string {
44 switch e {

Callers 7

EncodeWithColorFunction · 0.80
encodeAutoFunction · 0.80
Test_AutomaticEncodingFunction · 0.80
Test_UnicodeEncodingFunction · 0.80
Test_NumericEncodingFunction · 0.80
Test_GetUnknownEncoderFunction · 0.80

Calls

no outgoing calls

Tested by 5

Test_AutomaticEncodingFunction · 0.64
Test_UnicodeEncodingFunction · 0.64
Test_NumericEncodingFunction · 0.64
Test_GetUnknownEncoderFunction · 0.64