Go fragments

a collection a Go examples programs

This documents contains 3 chapters.

1- Privacy Policy
2- Terms Of Service
3- DMCA(Digital Millennium Copyright Act) Policy

1- Privacy Policy

gofragments.net is web site that presents Go source code to facilitate Go education and act as a venue for technical professionals (“Users”) to share knowledge about the Go programming language.

Our site is committed to providing engaging, informational, and safe online environment for it’s users. We are dedicated to safeguarding any personal information collected on-line and helping it’s users learn how to exercise control over personal information while exploring the Internet. We take special measures to protect their privacy while on-line. For example, we do not ask to disclose more personal information than is necessary for them to participate in a particular activity, and we take extra effort to prevent users from posting contact information.

To help ensure a rewarding on-line experience for our visitors we provide you with this summary of our information practices.

As we continue to offer our visitors new and different types of content and services, we may modify our practices from time to time. However, we will treat all personal information we collect in accordance with the privacy notice in effect at the time the information is collected.

INFORMATION WE COLLECT

When visitors come to the site, we automatically collect some non-personally identifiable “computer” information, such as the type of computer operating system , the web browser being used, and information regarding the Internet service provider.

For added functionality, the site requires that users provide essential information such as a email address and unique site identification to create member accounts.

USE OF INFORMATION

We use visitors’ personal information only for our internal purposes of enabling visitors gaining access to additional site features such as to subscribe to our online newsletter, or to inform users of upcoming events and special announcements. We use the names and e-mail addresses of subscribers to our e-mail newsletter only to send them the newsletter. Each newsletter contains instructions on how to be removed from the subscription list by sending us a return e-mail.

We sometimes use the non-personally identifiable information that we collect to improve the design and content of the site, to personalize our visitors’ experience on the site, and to offer products, programs, and services. We also may use this information in the aggregate to analyze site usage, as well as to offer products, programs, or services.

We will disclose information we maintain when required to do so by law, for example, in response to a court order or a subpoena. We also may disclose such information in response to a law enforcement agency’s request.

We will not use or transfer personally identifiable information in ways that are materially different from the ones described above without also providing parental notification of such practices and obtaining consent for any materially different uses.

INFORMATION COLLECTED BY THIRD-PARTY SITES AND ADVERTISERS

This site contains links to other sites, including those of advertisers, whose information practices may be different from ours. Visitors should consult the other sites’ privacy notices, since those sites are not covered by our privacy policy and may follow procedures that are different from ours. This site never gives a user’s e-mail address to advertisers without permission, however, if you choose to “opt-in” (click on a box to receive an advertiser’s information), to register with one of our advertisers, or not to “opt-out” (uncheck a checked box that will provide an advertiser with your information), that means you have allowed this site to give your e-mail address to that advertiser.

COOKIES

This site uses a software technology called “cookies.” Cookies are small text files that we place in visitors’ computer browsers to store their preferences. Cookies themselves do not contain any personally identifiable information. Although cookies could enable us to relate a visitor’s use of this Web site to personal information that a visitor has provided, such as an e-mail address, we do not use them for this purpose. We do use “cookies” to determine how many visitors we have and how often they visit various sections of the site.

CONTACT US

If you have any questions, comments, or concerns regarding our privacy policy and/or practices, please contact us at pmjtoca@gmail.com .

THIRD PARTY COOKIES

In the course of serving advertisements to this site, our third-party advertiser may place or recognize a unique “cookie” on your browser.

2- Terms Of Service

gofragments.net is web site that presents Go source code to facilitate Go education and act as a venue for technical professionals (“Users”) to share knowledge about the Go programming language. gofragments.net site provides the infrastructure to facilitate this sharing of information and networking. We are involved in the creation of the tutorial content but not involved in any way in the creation of the content of the information or digital goods that are shared between Users. However, we are involved in the moderation of information transmitted between Users. Such as removing content that we deemed inappropriate for this web site.

  1. Acceptance of and Modifications to these Terms

gofragments.net (the “Site”) is owned and operated by Patrick Toca. (pmjtoca@gmail.com). Your continued use of this Site is subject to these Terms of Use (the “Terms”) and our Privacy Policy. Your use of this Site constitutes your binding acceptance of these Terms, including any modifications we make. We reserve the right, at our sole discretion, to change, modify, or otherwise alter these Terms at any time without notice to you. Such modifications shall become effective immediately upon the posting thereof. Should you object to any Term or any subsequent modification or become dissatisfied with gofragments.net in any way, your only recourse is to immediately discontinue use of the Site.

  1. Community Rules, Policies and Disclaimers

    If you’re here to spam, you will be banned without warning. No lmgtfy link or RTFM comment. Be respectful. Everyone was once a newbie. gofragments.net is a work friendly site, accessible to anyone over 12 years of age. Please keep all content appropriate. Each forum member are encouraged to have only one account. If linking to another tech site the resource must not be available on gofragments.net through either the Support Forums or the rest of the site, and the link must be relevant to the members question. The posting of links or references to warez or any other type of illegal software is strictly forbidden. By doing so you risk having your user account terminated without warning. We will NOT help anyone we suspect of having obtained their software illegally.

  2. Questions, Answers, and other Content You may post content on this site, so long as the content is not:

    Illegal Obscene Threatening Defamatory Hateful Invasion of privacy Infringing of intellectual property rights (such as copyright and trademark rights) Racially, ethnically, or otherwise objectionable Otherwise harmful or injurious to third parties

In addition, you may not post any content that consists of or contains software viruses, political campaigning, commercial solicitations, chain letters, mass mailings, or any form of “spam.” gofragments.net reserves the right (but not the obligation) to remove or edit any submitted content, but does not regularly review posted content. Spammers will be banned without warning.

If you do post or otherwise submit questions, answers feedback, or any other content, and unless we indicate otherwise, you grant gofragments.net and its affiliates a nonexclusive, royalty-free, perpetual, irrevocable, and fully sublicensable right to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, and display such content throughout the world in any media under Creative Commons Attribution ShareAlike International Licence. You represent and warrant that you own or otherwise control all of the rights to the content that you post; that use of the content you supply does not violate this policy and will not cause injury to any person or entity; and that you will indemnify gofragments.net or its affiliates for all claims resulting from content you supply. gofragments.net has the right but not the obligation to monitor and edit or remove any activity or content. gofragments.net takes no responsibility and assumes no liability for any content posted by you or any third party.

gofragments.net does not guarantee the accuracy, integrity, or quality of any of the content that are provided. gofragments.net only facilitate the sharing of knowledge and resource.

  1. License and Site Access gofragments.net grants you a limited license to access and make personal use of this site and not to download (other than page caching) or modify it, or any portion of it, except with express written consent of gofragments.net. This license does not include any resale or commercial use of this site or its contents; any collection and use of any questions or answers displayed on this site; any derivative use of this site or its contents; any downloading or copying of information for the benefit of another business; or any use of data mining, robots, or similar data gathering and extraction tools. This site or any portion of this site may not be reproduced, duplicated, copied, sold, resold, visited, or otherwise exploited for any commercial purpose without express written consent of gofragments.net.

We may examine the Content on the Site on a regular basis and we maintain the absolute right, though not the obligation, to remove any Content that does not meet the standards listed above or that is otherwise objectionable at our sole discretion. We also reserve the right to terminate your access to the Site if you fail to abide by these Terms. In addition, we may take any legal, disciplinary and technical remedies to prevent the violation of these Terms of Use.

We are not responsible for the loss, deletion, failure to store, misdelivery, or untimely delivery of any Content submitted or transmitted through or to the Site.

  1. Grant of License When you post or transmit Content on, to, or through the Site, you grant the Site a nonexclusive, perpetual, irrevocable, worldwide, sublicensable, royalty-free license (under the Creative Commons Attribution ShareAlike International Licence) to use, store, display, publish, transmit, transfer, distribute, reproduce, rearrange, edit, modify, aggregate your Content with other Content, create derivative works of and publicly perform that Content for any purpose on and through each of the services provided by the Site or on other sites owned by Patrick Toca, including its parent Patrick Toca, subsidiaries, and affiliates (whether now existing or yet to be established), marketing affiliates (whether now existing or subsequently established), and advertising partners (whether now existing or subsequently established). This license shall apply to the distribution and the storage of your Content in any form, medium, or technology now known or later developed.

  2. Use of the Site and the Site Content Any reproduction, modification, creation of derivative works from or redistribution of the Content or collective work, and/or copying or reproducing the Content or any portion thereof to any other server or location for further reproduction or redistribution is prohibited without the attribution as stated under the Creative Commons Attribution ShareAlike International Licence. You may not decompile or disassemble, reverse engineer or otherwise attempt to discover any source code contained in the Site.

You may not use the Site in any manner that interferes with our normal operations or with the use and enjoyment of another user. You may only access the Site and the Content through the interfaces provided by the Site. You agree to use the Site only for its intended lawful purpose and in accordance with applicable laws. You understand that by using the Site, you may be exposed to Content that you find offensive or objectionable.

  1. Our Rights We maintain the right to do any of the following, at any time, with or without prior notice:

    restrict, suspend, or terminate your access to all or any part of our Site; change, suspend, or discontinue all or any part of our Site; refuse, move, or remove any Content; refuse to register any user name that may be deemed offensive; establish general practices and policies concerning the Site.

  2. Termination of Service You agree that gofragments.net, in its sole discretion, has the right (but not the obligation) to delete or deactivate your account, block your email or IP address, or otherwise terminate your access to or use of the Site (or any part thereof), immediately and without notice, and remove and discard any Content within the Site, for any reason, including, without limitation, if gofragments.net believes that you have violated the Terms. Further, you agree that gofragments.net shall not be liable to you or any third-party for any termination of your access to the Site. Further, you agree not to attempt to use the Site after said termination.

  3. Disclaimer of Warranties You agree that use of gofragments.net is entirely at your own risk and gofragments.net is provided on an “as is” or “as available” basis, without any warranties of any kind. All express and implied warranties, including without limitation, the warranties of merchantability, fitness for a particular purpose, and non-infringement of proprietary rights are expressly disclaimed to the fullest extent permitted by law. gofragments.net also disclaims any warranties for viruses or other harmful components in connection with the Site. Some jurisdictions do not allow the disclaimer of implied warranties. In such jurisdictions, some of the foregoing disclaimers may not apply to you insofar as they relate to implied warranties.

  4. Limitations of Liability We cannot guarantee the accuracy, security or quality of Content posted on or transmitted through the Site. Without limitation, we are not responsible for the Content posted by users on the Site and your use of the Site and any services provided is at your own risk. Under no circumstances shall gofragments.net be liable for direct, indirect, incidental, special, consequential, or exemplary damages (even if gofragments.net has been advised of the possibility of such damages), resulting from any aspect of your use of the Site, whether such damages arise from use or misuse of the Site, from inability to use the Site, or the interruption, suspension, modification, alteration, or termination of the Site. Such limitation shall also apply with respect to damages incurred by any information or advice received through the Site to the fullest extent permitted by law. Certain states do not allow the exclusion or limitation of certain damages. In such jurisdictions, some of the foregoing limitations may not apply to you.

  5. Indemnification You agree to indemnify and hold gofragments.net, its officers, subsidiaries, parents, affiliates, successors, assigns, directors, officers, agents, service providers, suppliers and employees, harmless from any claim or demand, including reasonable attorney fees and court costs, made by any third party due to, relating to, or arising out of Content you submit, post or make available through the Site, your use of the Site, your violation of the Terms, your breach of any of the representations and warranties herein, or your violation of any rights of others.

  6. Fees and payment Some of the services provided by this Site require payment of fees. All fees are stated in U.S. dollars and all fees are non-refundable unless expressly stated otherwise. All fee-based Services and virtual goods are provided “AS IS” with no warranties of any kind. gofragments.net may modify and/or eliminate such fee-based Services at its discretion. You agree that the payment for virtual goods grants you a limited license to use the virtual goods as specified on the Site.

  7. Membership and Account Responsibility Membership on the Site is available to anyone 12 years of age or older who truthfully and accurately provides all required information (including a legitimate email address) and obtains a unique username and password. The Site is not intended as a service for children and therefore persons under the age of 12 may not become a member. If you are under the age of 18, you represent and warrant that you have the permission of your parent(s) or legal guardian(s) to access and use the Site. You must be a member in order to post messages in the community forum.

You are responsible for maintaining the confidentiality of your account and password and for restricting access to your computer, and you agree to accept responsibility for all activities that occur under y our account or password. You agree to immediately notify us of any unauthorized use of your password or account or any other breach of security. You also agree to exit from your account at the end of each session. We will not be responsible for any loss or damage that may result if you fail to comply with these requirements. Furthermore, you are strongly advised to maintain and protect your privacy by choosing carefully what personally identifiable information you include in Content you post on the Site.

  1. Reporting Content Violations If you believe that any Content shown or transmitted through the Site violates these Terms or your intellectual property rights have been violated, please see DMCA/Removal Policy. In the case of an intellectual property violation, please provide the following information:

    A description of the intellectual property you claim has been infringed; Identify the material on the Site that you claim is infringing with enough detail so we may locate it on the Site; A statement by you that you have a good faith belief that the disputed use is not authorized by the intellectual property owner, its agent, or the law; A statement by you declaring under penalty of perjury that 1) the above information in your notice is accurate and 2) that you are the owner of the intellectual property interest involved or that you are authorized to act on behalf of that owner; Your address, telephone number, and email address where we can contact you; and your physical or electronic signature.

It is often difficult to determine if your intellectual property rights have been violated. We may request additional information before we remove allegedly infringing material. If a dispute arises as to the correct owner of the rights in question, we reserve the right to remove both parties’ Content.

  1. Privacy Please review our Privacy Policy, which governs the use of personal information on this Site and to which you agrees to be bound as a user of this Site.

3- DMCA(Digital Millennium Copyright Act) Policy

gofragments.net operates under Patrick Toca has adopted the following policy toward copyright infringement in accordance with the Digital Millennium Copyright Act (http://lcweb.loc.gov/copyright/legislation/dmca.pdf).

Reporting Copyright Infringement:

If you allege that your intellectual property is being violated, you must submit to Patrick Toca:

A physical or electronic signature of a person authorized to act on behalf of the owner of the copyright that has been allegedly infringed;

Identification of the works or materials being infringed;

Identification of the material that is claimed to be infringing including information regarding the specific location of the infringing materials on the Patrick Toca’s website that the copyright owner seeks to have removed, with sufficient detail so that Patrick Toca is capable of finding and verifying its existence;

Contact information of the person notifying the Patrick Toca, including address, telephone number and, if available, e-mail address;

A statement that the notifier has a good faith belief that the material is not authorized by the copyright owner, its agent, or the law; and

A statement made under penalty of perjury that the information provided is accurate and the notifying party is authorized to make the complaint on behalf of the copyright owner.

To : pmjtoca@gmail.com

It is Patrick Toca’s policy:

To remove or disable access to the infringing material or make compliant to adequate licensing policy;

To notify the content provider, member or user that it has adapted, removed or disabled access to the material; and

that repeat offenders will have the infringing material removed from the system and that Patrick Toca will terminate such content provider’s, member’s or user’s access to the service.

A reminder on source code comments and descriptions as seen on gofragments.net

There are times when there are no better ways to describe how a function or algorithm works than the original text written in the programming language or algorithm authors’ original web sites.

The only way to put the description forward without confusing the reader is to use original text or comment.