Dennis Rodewyk %!s(int64=5) %!d(string=hai) anos
pai
achega
3d7e3b306f
Modificáronse 1 ficheiros con 1 adicións e 19 borrados
  1. 1 19
      hugo-encrypt.go

+ 1 - 19
hugo-encrypt.go

@@ -1,6 +1,7 @@
 package main
 package main
 
 
 import (
 import (
+	"flag"
 	"bytes"
 	"bytes"
 	"crypto/aes"
 	"crypto/aes"
 	"crypto/cipher"
 	"crypto/cipher"
@@ -79,25 +80,6 @@ func (sf *stringFlag) String() string {
 
 
 var sitepath stringFlag
 var sitepath stringFlag
 
 
-func init() {
-    flag.Var(&sitepath, "sitepath", "the sitepath")
-type stringFlag struct {
-    set   bool
-    value string
-}
-
-func (sf *stringFlag) Set(x string) error {
-    sf.value = x
-    sf.set = true
-    return nil
-}
-
-func (sf *stringFlag) String() string {
-    return sf.value
-}
-
-var sitepath stringFlag
-
 func init() {
 func init() {
     flag.Var(&sitepath, "sitepath", "the sitepath")
     flag.Var(&sitepath, "sitepath", "the sitepath")
 }
 }