- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for examples (0.22 sec)
-
doc/asm.html
<p> Constants are of the form <code>const_<i>name</i></code>. For example, given the Go declaration <code>const bufSize = 1024</code>, assembly code can refer to the value of this constant as <code>const_bufSize</code>. </p> <p> Field offsets are of the form <code><i>type</i>_<i>field</i></code>. Struct sizes are of the form <code><i>type</i>__size</code>. For example, consider the following Go definition: </p> <pre>
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Nov 28 19:15:27 GMT 2023 - 36.3K bytes - Viewed (0) -
src/archive/zip/example_test.go
var files = []struct { Name, Body string }{ {"readme.txt", "This archive contains some text files."}, {"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"}, {"todo.txt", "Get animal handling licence.\nWrite more examples."}, } for _, file := range files { f, err := w.Create(file.Name) if err != nil { log.Fatal(err) } _, err = f.Write([]byte(file.Body)) if err != nil { log.Fatal(err) } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 27 00:22:03 GMT 2016 - 2K bytes - Viewed (0) -
src/cmd/cgo/doc.go
Note that the arguments are for "gcc", not "ld". Example: //go:cgo_ldflag "-lpthread" //go:cgo_ldflag "-L/usr/local/sqlite3/lib" A package compiled with cgo will include directives for both internal and external linking; the linker will select the appropriate subset for the chosen linking mode. Example As a simple example, consider a package that uses cgo to call C.sin.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
doc/go1.17_spec.html
For instance, this example: </p> <pre> goto L // BAD v := 3 L: </pre> <p> is erroneous because the jump to label <code>L</code> skips the creation of <code>v</code>. </p> <p> A "goto" statement outside a <a href="#Blocks">block</a> cannot jump to a label inside that block. For instance, this example: </p> <pre> if n%2 == 1 {
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
src/bytes/example_test.go
cui fliter <******@****.***> 1709194171 +0800
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Mar 04 15:54:40 GMT 2024 - 15K bytes - Viewed (1) -
src/bufio/example_test.go
favonia <******@****.***> 1684978995 -0400
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Oct 23 09:06:30 GMT 2023 - 4.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/operand_test.go
} } }) } } type operandTest struct { input, output string } type badOperandTest struct { input, error string } // Examples collected by scanning all the assembly in the standard repo. var amd64OperandTests = []operandTest{ {"$(-1.0)", "$(-1.0)"}, {"$(0.0)", "$(0.0)"}, {"$(0x2000000+116)", "$33554548"}, {"$(0x3F<<7)", "$8064"},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 18:31:05 GMT 2023 - 23.9K bytes - Viewed (0) -
doc/go_mem.html
slices, and strings in most Go implementations, such races can in turn lead to arbitrary memory corruption. </p> <p> Examples of incorrect synchronization are given in the “Incorrect synchronization” section below. </p> <p> Examples of the limitations on implementations are given in the “Incorrect compilation” section below. </p> <h2 id="synchronization">Synchronization</h2>
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Mar 04 15:54:42 GMT 2024 - 26.6K bytes - Viewed (0) -
doc/godebug.md
A GODEBUG setting is a `key=value` pair that controls the execution of certain parts of a Go program. The environment variable `GODEBUG` can hold a comma-separated list of these settings. For example, if a Go program is running in an environment that contains GODEBUG=http2client=0,http2server=0 then that Go program will disable the use of HTTP/2 by default in both the HTTP client and the HTTP server.
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Apr 16 17:29:58 GMT 2024 - 13.5K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/net/63116.md
The [DNSError] type now wraps errors caused by timeouts or cancellation. For example, `errors.Is(someDNSErr, context.DeadlineExceedeed)`
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Apr 24 13:37:36 GMT 2024 - 198 bytes - Viewed (0)