Permalink
Browse files

updating tests for go 1.x compatibility

  • Loading branch information...
1 parent 655b38e commit 4c7bbccd94794a3c1361d37e4228b3fbff0938a8 @eugeneware committed Mar 24, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 mustache_test.go
View
@@ -35,19 +35,19 @@ func (u *User) Func2() string {
return u.Name
}
-func (u *User) Func3() (map[string]string, os.Error) {
+func (u *User) Func3() (map[string]string, error) {
return map[string]string{"name": u.Name}, nil
}
-func (u *User) Func4() (map[string]string, os.Error) {
+func (u *User) Func4() (map[string]string, error) {
return nil, nil
}
-func (u *User) Func5() (*settings, os.Error) {
+func (u *User) Func5() (*settings, error) {
return &settings{true}, nil
}
-func (u *User) Func6() ([]interface{}, os.Error) {
+func (u *User) Func6() ([]interface{}, error) {
var v []interface{}
v = append(v, &settings{true})
return v, nil

0 comments on commit 4c7bbcc

Please sign in to comment.