Last active
July 15, 2018 23:41
-
-
Save xerial/e67a1593f4cf912649920549be48558e to your computer and use it in GitHub Desktop.
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
case class ServiceConfig(host:String, port:Int) | |
class Service(config:ServiceConfig) { | |
// ... | |
} | |
// Building a service instance | |
val config = new ServiceConfig("localhost", "8080") | |
val service = new Service(config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment