Create main.go

This commit is contained in:
Edward 2020-05-11 21:17:52 +08:00 committed by GitHub
parent 8ac63fef97
commit cca554b4ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,17 @@
/**
* @author : Jagepard <jagepard@yandex.ru>
* @license https://mit-license.org/ MIT
*/
package main
func main() {
interpreter := Interpreter{registry: make(map[int]Album)}
interpreter.addAlbumToRegistry(Album{name: "Untouchables", author: "Korn"})
interpreter.addAlbumToRegistry(Album{name: "Adrenaline", author: "Deftones"})
interpreter.interpret("album 2")
interpreter.interpret("album author 2")
interpreter.interpret("album author 1")
interpreter.interpret("author 1")
}