Skip to content
Excel row parser using Scala macro
Scala
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
src
.gitignore
.travis.yml
LICENSE
README.md
build.sbt
version.sbt

README.md

Excel-Reads

Build Status

libraryDependencies += "com.github.y-yu" %% "excel-reads" % "0.1.0"

This is a Excel row parser library using Scala macro.

case class HelloWorld(
  hello: String,
  world: String
)

val rowWithSheetName = RowWithSheetName(
  "sheet",
  Row(1) {
    Set(StringCell(1, "hello"), StringCell(2, "world"))
  }
)

val actual = ExcelReads[HelloWorld].read(rowWithSheetName)

assert(actual == Success(HelloWorld("hello", "world")))
You can’t perform that action at this time.