Skip to content

Commit

Permalink
Deprecate TimeV function.
Browse files Browse the repository at this point in the history
Now that we have QueryWithOptions, TimeV isn't necessary.
  • Loading branch information
beevik committed Oct 1, 2017
1 parent 8d96651 commit 109b395
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ntp.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ func QueryWithOptions(host string, opt QueryOptions) (*Response, error) {

// TimeV returns the current time using information from a remote NTP server.
// On error, it returns the local system time. The version may be 2, 3, or 4.
//
// This function is deprecated. Please use Time or QueryWithOptions.
func TimeV(host string, version int) (time.Time, error) {
m, recvTime, err := getTime(host, QueryOptions{Version: version})
if err != nil {
Expand Down

2 comments on commit 109b395

@FiloSottile
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to use the "Deprecated:" convention golang/go#10909

@beevik
Copy link
Owner Author

@beevik beevik commented on 109b395 Oct 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Done. 94108cd

Please sign in to comment.