diff --git a/templates/help.html b/templates/help.html
index 891f5e1..f81032d 100644
--- a/templates/help.html
+++ b/templates/help.html
@@ -30,7 +30,7 @@
{{end}}
-
width
and height
are in pixels
+ width
and height
are in pixels - PDF417 is a fixed size and these options will only change the canvas size.
ecc_level
should be 1, 2, 3 or 4 where 1 is least resilient and 4 is most resilient
diff --git a/validation/rules.go b/validation/rules.go
index dd71c67..4879cdc 100644
--- a/validation/rules.go
+++ b/validation/rules.go
@@ -41,13 +41,13 @@ var FormatRules = map[string]rule{
divisible: 1,
},
- "code39": {
- minLength: 1,
- maxLength: 80,
- charset: *CODE39,
- divisible: 1,
- },
-
+ /* "code39": {
+ minLength: 1,
+ maxLength: 80,
+ charset: *CODE39,
+ divisible: 1,
+ },
+ */
"code93": {
minLength: 1,
maxLength: 80,
@@ -68,21 +68,21 @@ var FormatRules = map[string]rule{
charset: *ANY,
divisible: 1,
},
+ /*
+ "ean8": {
+ minLength: 7,
+ maxLength: 7,
+ charset: *NUMERAL,
+ divisible: 1,
+ },
- "ean8": {
- minLength: 7,
- maxLength: 7,
- charset: *NUMERAL,
- divisible: 1,
- },
-
- "ean13": {
- minLength: 12,
- maxLength: 12,
- charset: *NUMERAL,
- divisible: 1,
- },
-
+ "ean13": {
+ minLength: 12,
+ maxLength: 12,
+ charset: *NUMERAL,
+ divisible: 1,
+ },
+ */
"pdf417": {
minLength: 1,
maxLength: 1100,
diff --git a/web/help.go b/web/help.go
index d374a59..46d7257 100644
--- a/web/help.go
+++ b/web/help.go
@@ -1,7 +1,6 @@
package web
import (
- "fmt"
"html/template"
"net/http"
@@ -23,14 +22,9 @@ func buildPage(w http.ResponseWriter, r *http.Request) {
BarcodeOptions: barcodeOptions,
}
- tmpl, err := template.New("help").ParseFiles("templates/help.html") // Match template name and file name
- if err != nil {
- fmt.Println("Error templating page: ", err)
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
+ tmpl := template.Must(template.New("help.html").ParseFiles("templates/help.html"))
- err = tmpl.Execute(w, data)
+ err := tmpl.Execute(w, data)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return