Skip to content

Instantly share code, notes, and snippets.

@jkinkead
Created November 1, 2017 21:14
Show Gist options
  • Save jkinkead/4d34cbb334d1619b2533484fa84cb168 to your computer and use it in GitHub Desktop.
Save jkinkead/4d34cbb334d1619b2533484fa84cb168 to your computer and use it in GitHub Desktop.
data class UserLogin(val password: String, val username: String)
val loginInfo: UserLogin = getLoginFromEnvironment()
val (username, password) = loginInfo
System.out.println("Trying to log in with username $username.")
performLogin(username, password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment