resource

open fun resource(resource: String, optional: Boolean = false): Source

Returns a new source from specified resource.

Return

a new source from specified resource

Parameters

resource

path of specified resource

optional

whether this source is optional

Sources

jvm source
Link copied to clipboard