I have: c EranConnection struct where Cellular and SubNetwork are strings [code] Now I…
Jump to turn (6)
- 1I have: c EranConnection struct where Cellular and SubNetwork are strings Now I
- 2Response is error:"EOF" and Request is {"Id":"41025","Region":"41","SubNetwork":
- 3Any other way without new typedeckaration?
- 4cannot use cellular.Name (variable of type string) as model.Cellular value in as
- 5Response is error:“EOF”
- 6Request example was sent earlier here is decode function: }
- User
I have: c EranConnection struct where Cellular and SubNetwork are strings ``` // EranConnection is custom type that represents Elastic Ran connection instance // used within the node of Radio Access Network type EranConnection struct { Vlan Cellular string
json:"Name"SubNetwork stringjson:"SubNetwork"Connection string Connections []string TnPort string TnPorts []string }// handleEranConnection initiates object *model.EranConnection, // encodes object as json string and respond to user func (s *server) handleEranConnection() http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { eranConnection := &model.EranConnection{}