- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 188 for main (0.25 sec)
-
src/cmd/link/testdata/dynimportvar/main.go
// Check that loading the variable from C and Go gets the // same result. //go:build darwin package main /* #include <mach/mach_init.h> unsigned int Mach_task_self(void) { return mach_task_self(); } */ import "C" import "cmd/link/testdata/dynimportvar/asm" func main() { c := uint32(C.Mach_task_self()) a := asm.Mach_task_self() if a != c { println("got", a, "want", c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 19:39:32 UTC 2023 - 678 bytes - Viewed (0) -
src/cmd/internal/metadata/main.go
// toolchain. // This program is only used by cmd/dist. Add an "ignore" build tag so it // is not installed. cmd/dist does "go run main.go" directly. //go:build ignore package main import ( "cmd/internal/osinfo" "fmt" "internal/sysinfo" "runtime" ) func main() { fmt.Printf("# GOARCH: %s\n", runtime.GOARCH) fmt.Printf("# CPU: %s\n", sysinfo.CPUName()) fmt.Printf("# GOOS: %s\n", runtime.GOOS)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 21:40:36 UTC 2023 - 876 bytes - Viewed (0) -
src/cmd/link/testdata/linkname/coro_asm/main.go
// Copyright 2024 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. // Assembly reference of newcoro is not allowed. package main func main() { newcoro() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:05:33 UTC 2024 - 267 bytes - Viewed (0) -
src/cmd/dist/main.go
"clean": cmdclean, "env": cmdenv, "install": cmdinstall, "list": cmdlist, "test": cmdtest, "version": cmdversion, } // main takes care of OS-specific startup and dispatches to xmain. func main() { os.Setenv("TERM", "dumb") // disable escape codes in clang errors // provide -check-armv6k first, before checking for $GOROOT so that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 22 19:44:52 UTC 2023 - 5.5K bytes - Viewed (0) -
src/cmd/trace/testdata/testprog/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "log" "net" "os" "runtime" "runtime/trace" "sync" "syscall" "time" ) func main() { if err := trace.Start(os.Stdout); err != nil { log.Fatal(err) } // checkExecutionTimes relies on this. var wg sync.WaitGroup
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 17:15:58 UTC 2024 - 2.5K bytes - Viewed (0) -
src/cmd/asm/main.go
// license that can be found in the LICENSE file. package main import ( "bufio" "flag" "fmt" "internal/buildcfg" "log" "os" "cmd/asm/internal/arch" "cmd/asm/internal/asm" "cmd/asm/internal/flags" "cmd/asm/internal/lex" "cmd/internal/bio" "cmd/internal/obj" "cmd/internal/objabi" "cmd/internal/telemetry" ) func main() { log.SetFlags(0) log.SetPrefix("asm: ")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/objdump/main.go
// address: assembly // ... // // Each stanza gives the disassembly for a contiguous range of addresses // all mapped to the same original source file and line number. // This mode is intended for use by pprof. package main import ( "flag" "fmt" "log" "os" "regexp" "strconv" "strings" "cmd/internal/objfile" "cmd/internal/telemetry" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/fix/main.go
// Copyright 2011 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. package main import ( "bytes" "flag" "fmt" "go/ast" "go/format" "go/parser" "go/scanner" "go/token" "go/version" "internal/diff" "io" "io/fs" "os" "path/filepath" "sort" "strings" "cmd/internal/telemetry" ) var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.4K bytes - Viewed (0) -
src/cmd/test2json/main.go
// as a sequence of events with Test set to the benchmark name, terminated // by a final event with Action == "bench" or "fail". // Benchmarks have no events with Action == "pause". package main import ( "flag" "fmt" "io" "os" "os/exec" "os/signal" "cmd/internal/telemetry" "cmd/internal/test2json" ) var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue62430/main.go
// in some stdlib package (ex: unicode), however there // may be references to that map var from a plugin that // gets loaded. package main import ( "fmt" "plugin" "unicode" ) func main() { p, err := plugin.Open("issue62430.so") if err != nil { panic(err) } s, err := p.Lookup("F") if err != nil { panic(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 13:18:51 UTC 2023 - 804 bytes - Viewed (0)