Gustavo Niemeyer 13 سال پیش
والد
کامیت
d6385b3867
3فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 2 2
      goyaml.go
  2. 0 1
      resolve.go
  3. 1 1
      sorter.go

+ 2 - 2
goyaml.go

@@ -59,7 +59,7 @@ type Getter interface {
 // If an internal pointer within a struct is not initialized, goyaml
 // will initialize it if necessary for unmarshalling the provided data,
 // but the struct provided as out must not be a nil pointer.
-// 
+//
 // The type of the decoded values and the type of out will be considered,
 // and Unmarshal() will do the best possible job to unmarshal values
 // appropriately.  It is NOT considered an error, though, to skip values
@@ -83,7 +83,7 @@ type Getter interface {
 //     }
 //     var T t
 //     goyaml.Unmarshal([]byte("a: 1\nb: 2"), &t)
-// 
+//
 func Unmarshal(in []byte, out interface{}) (err error) {
 	defer handleErr(&err)
 	d := newDecoder()

+ 0 - 1
resolve.go

@@ -8,7 +8,6 @@ import (
 
 // TODO: merge, timestamps, base 60 floats, omap.
 
-
 type resolveMapItem struct {
 	value interface{}
 	tag   string

+ 1 - 1
sorter.go

@@ -7,7 +7,7 @@ import (
 
 type keyList []reflect.Value
 
-func (l keyList) Len() int { return len(l) }
+func (l keyList) Len() int      { return len(l) }
 func (l keyList) Swap(i, j int) { l[i], l[j] = l[j], l[i] }
 func (l keyList) Less(i, j int) bool {
 	a := l[i]