A package is a namespace or a directly having all the scala files.
src
└── main
└── scala
└── com
├── Main.scala
└── core
├── Givens.scala
└── functions.scala
com
, and com.core
are packages.
If we do, import com.*
it imports everything from the file Main.scala
except given
and extensions
.
To import givens
we use import com.core.given