This is a creation in Article, where the information may have evolved or changed.
1. The musical structure is named incorrectly, not music, but Musicentry, as follows:
2. The package name is wrong, not the library, but Mlib:
3. The Manager.go code remove function removes the wrong intermediate element, index-1 should be changed to index:
4. M0 variable initialization error,"Celion Dion", redundant,MP3 should be enclosed in double quotes:
5. Manager_test.go code error, no Genre:
6. Manager_test.go code Error, err superfluous:
7. Less Wav.go code, you can directly copy the Mp3.go all replace MP3 keywords can be
8. Main program Mplayer.go code CTRL and signal variable declarations and calls superfluous:
9. Manager.go and Main program Mplayer.go,go language noon ElseIf keyword, should be else if, in the middle less space:
Manager.go
Mplayer.go
10. The article does not give a complete code file directory structure, is I based on the context of the schematic diagram of the code structure:
This article is from the "Pine" blog, be sure to keep this source http://dongsong.blog.51cto.com/916653/1592085