Update godoc comment of EncodeWithColor methods

This commit is contained in:
zhaori96 committed 2024-08-01 09:02:23 -03:00
1 parent 1c8224977e
commit b1129f9d8b
9 files changed
+10 -8

No files matched your search

+1 -1
View File
@@ -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