Usable variables and functions must start with a capital letter.

This commit is contained in:
Kalle Carlbark 2019-09-11 09:25:23 +02:00
parent 0f32a49e83
commit 64cc98fe52
No known key found for this signature in database
GPG key ID: 3FC0C93C5A5A0670

View file

@ -8,7 +8,7 @@ import (
"time"
)
type dcim_interfaces_create struct {
type Dcim_Interfaces_Create struct {
Device int `json:"device"`
Name string `json:"name"`
Type int `json:"type,omitempty"`
@ -28,7 +28,7 @@ type dcim_interfaces_create struct {
Tags []string `json:"tags,omitempty"`
}
type dcim_interfaces_list struct {
type Dcim_Interfaces_List struct {
Count int `json:"count,omitempty"`
Next interface{} `json:"next,omitempty"`
Previous interface{} `json:"previous,omitempty"`
@ -79,7 +79,7 @@ type dcim_interfaces_list struct {
} `json:"results,omitempty"`
}
func (i *dcim_interfaces_create) CreateInterface(n *NetBox) error {
func (i *Dcim_Interfaces_Create) CreateInterface(n *NetBox) error {
interfaceData, err := json.Marshal(i)
if err != nil {
return err