Go (programming language): Difference between revisions

Content deleted Content added
Syntax: not sure this is useful, but give examples of returning both or neither of value+error, and change phrasing from "empty" since an "empty" int is 0
No edit summary
Line 23:
}}
 
'''Go''', also calledimproperly referred to as '''golang''', is a programming language initially developed at [[Google]]<ref>{{cite news|url=http://www.techcrunch.com/2009/11/10/google-go-language/|title=Google’s Go: A New Programming Language That’s Python Meets C++|last=Kincaid |first=Jason |date=10 November 2009 |newspaper=TechCrunch |accessdate=18 January 2010}}</ref> in 2007 by [[Robert Griesemer]], [[Rob Pike]], and [[Ken Thompson]].<ref name="langfaq">{{cite web|url=http://golang.org/doc/go_faq.html|title=Language Design FAQ|date=16 January 2010|work=golang.org|accessdate=27 February 2010}}</ref> It is a statically-[[Type system|typed]] language with syntax loosely derived from that of C, adding [[Garbage collection (computer science)|garbage collection]], [[type safety]], some [[dynamic typing|dynamic-typing]] capabilities, additional built-in types such as [[variable-length array]]s and key-value maps, and a large standard library.
 
The language was announced in November 2009 and is now used in some of Google's production systems.<ref name="faq">{{cite news| url = http://golang.org/doc/faq#Is_Google_using_go_internally | title = Go FAQ: Is Google using Go internally? | accessdate = 9 March 2013}}</ref> Go's "gc" compiler targets the [[Linux]], [[Mac OS X]], [[FreeBSD]], [[NetBSD]], [[OpenBSD]], [[Plan 9 from Bell Labs|Plan 9]], and [[Microsoft Windows]] operating systems and the [[i386]], [[amd64]], and [[ARM architecture|ARM]] processor architectures.<ref>{{cite web|url=http://golang.org/doc/install.html#tmp_33|title=Installing Go|date=11 June 2010|work=golang.org|publisher=The Go Authors|accessdate=11 June 2010}}</ref> A second compiler, gccgo, is a [[GNU Compiler Collection|GCC]] frontend.<ref>{{cite web|url=http://golang.org/doc/go_faq.html#Implementation|title=FAQ: Implementation|date=16 January 2010|work=golang.org|accessdate=18 January 2010}}</ref><ref>{{cite web | url=http://gcc.gnu.org/install/configure.html | title=Installing GCC: Configuration | accessdate=3 December 2011 | quote=Ada, Go and Objective-C++ are not default languages}}</ref>