"Go language Programming" "3.6 Complete Example" code error and file directory structure

Source: Internet
Author: User

1. The musical structure is named incorrectly, not music, but Musicentry, as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/57/3D/wKiom1SVeODSoKMkAABy4gF4Jbg161.jpg "title=" Qq20141220212539.png "alt=" Wkiom1sveodsokmkaaby4gf4jbg161.jpg "/>



2. The package name is wrong, not the library, but Mlib:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/3A/wKioL1SVeSOSlVQtAABP0hGLr4s628.jpg "title=" Qq20141220212400.png "alt=" Wkiol1svesoslvqtaabp0hglr4s628.jpg "/>


3. The Manager.go code remove function removes the wrong intermediate element, index-1 should be changed to index:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/3D/wKiom1SVeVGAIkBYAACmrxsXsZQ578.jpg "title=" Qq20141220212735.png "alt=" Wkiom1svevgaikbyaacmrxsxszq578.jpg "/>

4. M0 variable initialization error,"Celion Dion", redundant,MP3 should be enclosed in double quotes:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/3A/wKioL1SVejnigJPnAACKKFJC5mU007.jpg "title=" Qq20141220212838.png "alt=" Wkiol1svejnigjpnaackkfjc5mu007.jpg "/>

5. Manager_test.go code error, no Genre:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/3A/wKioL1SVesvgEz3AAAD_YJyEmXE152.jpg "title=" Qq20141220212942.png "alt=" wkiol1svesvgez3aaad_yjyemxe152.jpg "/>6. Manager_test.go code Error, err superfluous:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/3D/wKiom1SVeouhlbgMAABmJ8-Z9JM468.jpg "title=" Qq20141220213235.png "alt=" Wkiom1sveouhlbgmaabmj8-z9jm468.jpg "/>

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:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/3D/wKiom1SVfBHBb0eLAAAmbnqavMw213.jpg "title=" Qq20141220213708.png "alt=" Wkiom1svfbhbb0elaaambnqavmw213.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/3A/wKioL1SVfMPy_hqJAAA_T2N8mfY480.jpg "title=" Qq20141220213746.png "alt=" Wkiol1svfmpy_hqjaaa_t2n8mfy480.jpg "/>

9. Manager.go and Main program Mplayer.go,go language noon ElseIf keyword, should be else if, in the middle less space:

Manager.go

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/3D/wKiom1SVfY2ACwdKAAFq50J2GlU329.jpg "title=" Qq20141220214308.png "alt=" Wkiom1svfy2acwdkaafq50j2glu329.jpg "/>

Mplayer.go

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/3A/wKioL1SVfkTgJCuAAADiAPgUgAo969.jpg "title=" Qq20141220214345.png "alt=" Wkiol1svfktgjcuaaadiapgugao969.jpg "/>

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:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/3D/wKiom1SVfq3Tlx-fAACTx99_Fgw028.jpg "title=" Qq20141220215025.png "alt=" Wkiom1svfq3tlx-faactx99_fgw028.jpg "/>

This article is from the "Pine" blog, be sure to keep this source http://dongsong.blog.51cto.com/916653/1592085

"Go language Programming" "3.6 Complete Example" code error and file directory structure

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.