Last active
June 16, 2017 11:09
-
-
Save shubhra02/7b2bd688643b13ea931d8351c5427142 to your computer and use it in GitHub Desktop.
Pure Config Code
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
import pureconfig.loadConfig | |
case class CompanyEmployee(companyName: String, place: String) | |
case class Employee(jobTitle: String, company: CompanyEmployee) | |
loadConfig[Employee](config, "se.pureconfig.example") | |
// res3: Either[pureconfig.error.ConfigReaderFailures,Employee] = Right(Employee(Software consultant,CompanyEmployee("Knoldus","Noida"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment