tailieunhanh - The Go Programming Language Phrasebook

Essential Go code and idioms for all facets of the development process This guide gives you the code “phrases” you need to quickly and effectively complete a wide variety of projects with Go, today’s most exciting new programming language. Tested, easy-to-adapt code examples illuminate every step of Go development, helping you write highly scalable, concurrent software. You’ll master Go-specific idioms for working with strings, collections, arrays, error handling, goroutines, slices, maps, channels, numbers, dates, times, files, networking, web apps, the runtime, and more | David Chisnafl ESSENTIAL GO CODE AND IDIOMS FOR ALL FACETS OF THE DEVELOPMENT PROCESS The Go Programming Language The Go Programming Language PHRASEBOOK David Chisnall AAddison-Wesley DEVELOPER S LIBRARY Upper Saddle River NJ Boston Indianapolis San Francisco New York Toronto Montreal London Munich Paris Madrid Cape Town Sydney Tokyo Singapore Mexico City Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book and the publisher was aware of a trademark claim the designations have been printed with initial capital letters or in all capitals. The author and publisher have taken care in the preparation of this book but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein. The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales which may include electronic versions and or custom covers and content particular to your business training goals marketing focus and branding interests. For more information please contact . Corporate and Government Sales 800 382-3419 corpsales@ For sales outside the United States please contact International Sales international@ Visit us on the Web aw Library of Congress Cataloging-in-Publication Data Chisnall David. The Go programming language phrasebook David Chisnall. p. cm. Includes index. ISBN 978-0-321-81714-3 pbk. alk. paper ISBN 0-321-81714-1 pbk. alk. paper 1. Go Computer program language 2. Computer programming. 3. Open source software. I. Title. 2012 dc23 2012000478 Copyright 2012 Pearson Education Inc. All rights reserved. Printed in the United States of America. This publication .