Monkey言語:サンプル音源の再生
目標組み込み関数sampleを作成して,引数によって録音された音源を流せるようにしたい.
この記事を参考に書いていく.
テストケースを書くfunc TestSampleFunction(t *testing.T){ tests := []struct { input string expected interface{} }{ {`sample("drubase")`, "drubase"}, {`sample()`, "wrong number of argum