Skip to content

Import others

bonyong lee edited this page Nov 20, 2018 · 1 revision

Import

Import keyword MUST be located at front part in lua file. you can import other lua sources or packages.

Import other source

A source location must has path prefix, './' or '../'.

import "./other.lua"
...

Import other package

import "aergoio/athena-343"
...

See here for more.