json - The Go Programming Language

... #lowframe The Go Programming Language Go ▽ Documents Packages The Project Help Blog Play magnifying glass: package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "encoding/json" Overview Index Examples The package's Name is printed as title by the top-level template Package json implements encoding and decoding of JSON as defined in RFC 7159. The mapping between JSON and Go values is described in the documentation for the Marshal and Unmarshal ...

Linked on 2019-01-28 14:10:06 | Similar Links
io - The Go Programming Language

... #lowframe The Go Programming Language Go ▽ Documents Packages The Project Help Blog Play package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "io" Overview Index Examples Subdirectories The package's Name is printed as title by the top-level template Package io provides basic interfaces to I/O primitives. Its primary job is to wrap existing implementations of such primitives, such as those in package os, into shared public interfaces that ab...

Linked on 2017-12-12 19:34:32 | Similar Links
io - The Go Programming Language

... #lowframe The Go Programming Language Go ▽ Documents Packages The Project Help Blog Play package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "io" Overview Index Examples Subdirectories The package's Name is printed as title by the top-level template Package io provides basic interfaces to I/O primitives. Its primary job is to wrap existing implementations of such primitives, such as those in package os, into shared public interfaces that ab...

Linked on 2017-12-12 19:34:06 | Similar Links
http - The Go Programming Language

... #lowframe The Go Programming Language Go ▽ Documents Packages The Project Help Blog Play package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "net/http" Overview Index Examples Subdirectories The package's Name is printed as title by the top-level template Package http provides HTTP client and server implementations. Get, Head, Post, and PostForm make HTTP (or HTTPS) requests: resp, err := http.Get(" http://example.com/ ") ... resp, err :=...

Linked on 2016-01-20 14:13:46 | Similar Links
Xe
src/strconv/atob.go - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package strconv 6 7 // ParseBool returns the boolean value represented by the string. 8 // It accepts 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False. 9 // Any other value returns an error. 10 func ParseBool(str string) (value bool, err error) { 11 switch str { 12 case "1", "t", "T", "true", "TRUE", "True": 13 return true, nil 14 case "0", "f", "F", "false", "FALSE", "False": 15 return false, nil 16 } 17 return false, syntaxError("ParseBool", str) 18 } 19 20 // FormatBool returns "true" or "fal...

Linked on 2015-07-21 18:51:06 | Similar Links
cgo - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). Cgo enables the creation of Go packages that call C code. To use cgo write normal Go code that imports a pseudo-package "C". The Go code can then refer to types such as C.size_t, variables such as C.stdout, or functions such as C.putchar. If the import of "C" is immediately preceded by a comment, that comment, called the preamble,...

Linked on 2015-03-15 03:58:02 | Similar Links
dx
http - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "net/http" Overview Index Examples Subdirectories The package's Name is printed as title by the top-level template Package http provides HTTP client and server implementations. Get, Head, Post, and PostForm make HTTP (or HTTPS) requests: resp, err := http.Get(" http://example.com/ ") ... resp, err := http.P...

Linked on 2015-02-09 17:45:10 | Similar Links
src/net/http/server.go - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // HTTP server. See RFC 2616. 6 7 package http 8 9 import ( 10 "bufio" 11 "crypto/tls" 12 "errors" 13 "fmt" 14 "io" 15 "io/ioutil" 16 "log" 17 "net" 18 "net/url" 19 "os" 20 "path" 21 "runtime" 22 "strconv" 23 "strings" 24 "sync" 25 "sync/atomic" 26 "time" 27 ) 28 29 // Errors introduced by the HTTP server. 30 var ( 31 ErrWriteAfterFlush = errors.New("Conn.Write called after Flush") 32 ErrBodyNotAllowed = errors.New("http: request method or response status code does not allow body") 33 ErrHijacked ...

Linked on 2014-12-31 16:32:27 | Similar Links
Contribution Guidelines - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share This document explains how to contribute changes to the Go project. It assumes you have installed Go from source: $ git clone https://go.googlesource.com/go $ cd go/src $ ./all.bash TODO(adg): delete the above, restore the below after we have updated install-source.html <a href="/doc/install/source">installation instructions</a> and have <a href="code.html">written and tested your code</a>. (Note that the gccgo frontend lives elsewhere; see Contributing to gccgo .) The project welcomes submissions but please let everyone know what you're working on if you want it to become part of the main repository. Before undertaking to write something new for the Go project, send mail to th...

Linked on 2014-12-16 13:47:43 | Similar Links
time - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "time" Overview Index Examples The package's Name is printed as title by the top-level template Package time provides functionality for measuring and displaying time. The calendrical calculations always assume a Gregorian calendar. Table of contents for API; must be named manual-nav to turn off auto ...

Linked on 2014-12-01 14:09:30 | Similar Links
rpc - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "net/rpc" Overview Index Subdirectories The package's Name is printed as title by the top-level template Package rpc provides access to the exported methods of an object across a network or other I/O connection. A server registers an object, making it visible as a service with the name of the type of the obje...

Linked on 2014-12-01 14:02:13 | Similar Links
rpc - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "net/rpc" Overview Index Subdirectories The package's Name is printed as title by the top-level template Package rpc provides access to the exported methods of an object across a network or other I/O connection. A server registers an object, making it visible as a service with the name of the type of the obje...

Linked on 2014-12-01 04:49:59 | Similar Links
rpc - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "net/rpc" Overview Index Subdirectories The package's Name is printed as title by the top-level template Package rpc provides access to the exported methods of an object across a network or other I/O connection. A server registers an object, making it visible as a service with the name of the type of the obje...

Linked on 2014-12-01 04:49:51 | Similar Links
reflect - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "reflect" Overview Index Examples The package's Name is printed as title by the top-level template Package reflect implements run-time reflection, allowing a program to manipulate objects with arbitrary types. The typical use is to take a value with static type interface{} and extract its dynamic type informa...

Linked on 2014-11-29 14:59:26 | Similar Links
sync - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "sync" Overview Index Examples Subdirectories The package's Name is printed as title by the top-level template Package sync provides basic synchronization primitives such as mutual exclusion locks. Other than the Once and WaitGroup types, most are intended for use by low-level library routines. Higher-leve...

Linked on 2014-10-12 21:52:33 | Similar Links
Go 1.3 Release Notes - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share The latest Go release, version 1.3, arrives six months after 1.2, and contains no language changes. It focuses primarily on implementation work, providing precise garbage collection, a major refactoring of the compiler tool chain that results in faster builds, especially for large projects, significant performance improvements across the board, and support for DragonFly BSD, Solaris, Plan 9 and Google's Native Client architecture (NaCl). It also has an important refinement to the memory model regarding synchronization. As always, Go 1.3 keeps the promise of compatibility , and almost everything will continue to compile and run without change when moved to 1.3. Microsoft stopped...

Linked on 2014-09-19 14:56:12 | Similar Links
rpc - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). import "net/rpc" Overview Index Subdirectories The package's Name is printed as title by the top-level template Package rpc provides access to the exported methods of an object across a network or other I/O connection. A server registers an object, making it visible as a service with the name of the type of the obj...

Linked on 2014-07-29 19:23:30 | Similar Links