Created
February 14, 2014 14:20
-
-
Save danvega/9001764 to your computer and use it in GitHub Desktop.
Return multiple values in Groovy
This file contains 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
String username = 'dvega' | |
String password = 'password' | |
String auth = "$username:$password" | |
def (user,pass) = auth.split(':') | |
println "user=$user pass=$pass" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment