Given a .fbs file, source code can be generated using flatc command:
.fbs
flatc
flatc --go {file}.fbs