Skip to content

Commit

Permalink
add type aliases; honour go compatibility promise
Browse files Browse the repository at this point in the history
  • Loading branch information
samsalisbury committed Apr 6, 2020
1 parent a9601d9 commit 074f1d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions balancer/v1api_aliases.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package balancer

// These type aliases should be removed when this project reaches
// major version 2. They exist so we can stabilize the API on the
// correct names, whilst preserving the Go compatibility promise.

type PickOptions = PickInfo
8 changes: 8 additions & 0 deletions resolver/v1api_aliases.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package resolver

// These type aliases should be removed when this project reaches
// major version 2. They exist so we can stabilize the API on the
// correct names, whilst preserving the Go compatibility promise.

type BuildOption = BuildOptions
type ResolveNowOption = ResolveNowOptions

0 comments on commit 074f1d1

Please sign in to comment.