Rework XDR encoding

This commit is contained in:
Jakob Borg
2014-02-20 17:40:15 +01:00
parent 87d473dc8f
commit 5837277f8d
27 changed files with 1843 additions and 1029 deletions

4
gui.go
View File

@@ -112,11 +112,11 @@ type guiFile File
func (f guiFile) MarshalJSON() ([]byte, error) {
type t struct {
Name string
Size int
Size int64
}
return json.Marshal(t{
Name: f.Name,
Size: File(f).Size(),
Size: File(f).Size,
})
}