This commit is contained in:
parent
1f7b4cede2
commit
8c8e360bf6
1 changed files with 1 additions and 4 deletions
|
|
@ -6,10 +6,7 @@ import (
|
||||||
|
|
||||||
func BoolFromForm(r *http.Request, k string) bool {
|
func BoolFromForm(r *http.Request, k string) bool {
|
||||||
s := r.PostFormValue(k)
|
s := r.PostFormValue(k)
|
||||||
if s == "on" {
|
return s == "on"
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func PostFormValueOrNone(r *http.Request, k string) string {
|
func PostFormValueOrNone(r *http.Request, k string) string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue