Pure Config Code
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