Get Header

It’s possible to get the header starting from the chosen class

case class Foo(i: Int, d: Double, s: Option[String], b: Boolean)
import com.github.gekomad.ittocsv.core.Header._

{
  given IttoCSVFormat = IttoCSVFormat.default
  assert(csvHeader[Foo] == "i,d,s,b")
}

{
  given IttoCSVFormat = IttoCSVFormat.default.withDelimiter('|').withForceQuote(true)
  assert(csvHeader[Foo] == """"i"|"d"|"s"|"b"""")
}