swap from/to in layer

This commit is contained in:
Thomas Rudin 2019-03-29 21:02:36 +01:00
parent 85029cb43d
commit ce4ac4dfc9

View File

@ -3,8 +3,8 @@ package layer
type Layer struct { type Layer struct {
Id int `json:"id"` Id int `json:"id"`
Name string `json:"name"` Name string `json:"name"`
To int `json:"to"`
From int `json:"from"` From int `json:"from"`
To int `json:"to"`
} }
func FindLayerById(layers []*Layer, id int) *Layer { func FindLayerById(layers []*Layer, id int) *Layer {