Skip to content

Commit

Permalink
utils -> duration
Browse files Browse the repository at this point in the history
  • Loading branch information
phillc committed Jan 27, 2020
1 parent 3561913 commit 086f769
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions account_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"time"

"github.com/linode/linodego/internal/duration"
"github.com/linode/linodego/internal/parseabletime"
"github.com/linode/linodego/internal/utils"
)

// Event represents an action taken on the Account.
Expand Down Expand Up @@ -195,7 +195,7 @@ func (i *Event) UnmarshalJSON(b []byte) error {
}

i.Created = (*time.Time)(p.Created)
i.TimeRemaining = utils.UnmarshalTimeRemaining(p.TimeRemaining)
i.TimeRemaining = duration.UnmarshalTimeRemaining(p.TimeRemaining)

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/time.go → internal/duration/duration.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package utils
package duration

import (
"encoding/json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package utils
package duration

import (
"encoding/json"
Expand Down

0 comments on commit 086f769

Please sign in to comment.