فهرست منبع

updated documentation

Florian Sundermann 12 سال پیش
والد
کامیت
6c39380327
2فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 3 0
      qr/encoder.go
  2. 4 0
      qr/versioninfo.go

+ 3 - 0
qr/encoder.go

@@ -11,8 +11,11 @@ type encodeFn func(content string, eccLevel ErrorCorrectionLevel) (*barcode.BitL
 type Encoding byte
 type Encoding byte
 
 
 const (
 const (
+	// Choose best matching encoding
 	Auto Encoding = iota
 	Auto Encoding = iota
+	// Encode only numbers [0-9]
 	Numeric
 	Numeric
+	// Encode only uppercase letters, numbers and  [Space], $, %, *, +, -, ., /, :
 	AlphaNumeric
 	AlphaNumeric
 )
 )
 
 

+ 4 - 0
qr/versioninfo.go

@@ -5,9 +5,13 @@ import "math"
 type ErrorCorrectionLevel byte
 type ErrorCorrectionLevel byte
 
 
 const (
 const (
+	// Recovers 7% of data
 	L ErrorCorrectionLevel = iota
 	L ErrorCorrectionLevel = iota
+	// Recovers 15% of data
 	M
 	M
+	// Recovers 25% of data
 	Q
 	Q
+	// Recovers 30% of data
 	H
 	H
 )
 )