Skip to content

Instantly share code, notes, and snippets.

@shubhra02
Last active June 16, 2017 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shubhra02/7b2bd688643b13ea931d8351c5427142 to your computer and use it in GitHub Desktop.
Save shubhra02/7b2bd688643b13ea931d8351c5427142 to your computer and use it in GitHub Desktop.
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