packagesequenceimport()// just for testingtypeMemorySequencerstruct{counteruint64}funcNewMemorySequencer()(m*MemorySequencer){m=&MemorySequencer{counter:1}return}func(m*MemorySequencer)NextFileId(countint)(uint64,int){ret:=m.counterm.counter+=uint64(count)returnret,count}