Last active
August 29, 2015 14:16
-
-
Save partkyle/b9a36587bcfa923c9d8f to your computer and use it in GitHub Desktop.
Example of versioned dependency issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package deliver | |
| import message "message/v1" | |
| func Deliver(m message.Message) { | |
| // do something here | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package messenger | |
| type Message struct{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package print | |
| import "fmt" | |
| import message "message/v2" | |
| func PrintMessage(message.Message) { | |
| fmt.Println(Message) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment