Update godoc comment of EncodeWithColor methods
This commit is contained in:
1 parent
1c8224977e
commit
b1129f9d8b
9 files changed
+10
-8
No files matched your search
+1
-1
@@ -127,7 +127,7 @@ func Encode(data []byte, minECCPercent int, userSpecifiedLayers int) (barcode.Ba
|
||||
return EncodeWithColor(data, minECCPercent, userSpecifiedLayers, barcode.ColorScheme16)
|
||||
}
|
||||
|
||||
// Encode returns an aztec barcode with the given content
|
||||
// Encode returns an aztec barcode with the given content and color scheme
|
||||
func EncodeWithColor(data []byte, minECCPercent int, userSpecifiedLayers int, color barcode.ColorScheme) (barcode.Barcode, error) {
|
||||
bits := highlevelEncode(data)
|
||||
eccBits := ((bits.Len() * minECCPercent) / 100) + 11
|
||||
|
||||
Reference in new issue
Block a user