Skip to content

Instantly share code, notes, and snippets.

@shubhra02

shubhra02/PureConfig.scala

Last active Jun 16, 2017
Embed
What would you like to do?
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