- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 67 for syslog (0.16 sec)
-
src/cmd/go/testdata/script/link_syso_issue33139.txt
# Test that we can use the external linker with a host syso file that is # embedded in a package, that is referenced by a Go assembly function. # See issue 33139. [!compiler:gc] skip [!cgo] skip [short] skip 'invokes system C compiler' # External linking is not supported on linux/ppc64. # See: https://github.com/golang/go/issues/8912 [GOOS:linux] [GOARCH:ppc64] skip cc -c -o syso/objTestImpl.syso syso/src/objTestImpl.c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 1K bytes - Viewed (0) -
src/log/slog/example_logvaluer_secret_test.go
// license that can be found in the LICENSE file. package slog_test import ( "log/slog" "log/slog/internal/slogtest" "os" ) // A token is a secret value that grants permissions. type Token string // LogValue implements slog.LogValuer. // It avoids revealing the token. func (Token) LogValue() slog.Value { return slog.StringValue("REDACTED_TOKEN") } // This example demonstrates a Value that replaces itself
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 04 18:32:54 UTC 2023 - 906 bytes - Viewed (0) -
src/crypto/internal/boring/README.md
--- This directory holds the core of the BoringCrypto implementation as well as the build scripts for the module itself: syso/*.syso. syso/goboringcrypto_linux_amd64.syso is built with: GOARCH=amd64 ./build.sh syso/goboringcrypto_linux_arm64.syso is built with: GOARCH=arm64 ./build.sh Both run on an x86 Debian Linux system using Docker. For the arm64 build to run on an x86 system, you need
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 22:52:27 UTC 2024 - 1.4K bytes - Viewed (0) -
src/log/slog/example_logvaluer_group_test.go
package slog_test import "log/slog" type Name struct { First, Last string } // LogValue implements slog.LogValuer. // It returns a group containing the fields of // the Name, so that they appear together in the log output. func (n Name) LogValue() slog.Value { return slog.GroupValue( slog.String("first", n.First), slog.String("last", n.Last)) } func ExampleLogValuer_group() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 21 20:55:33 UTC 2023 - 825 bytes - Viewed (0) -
src/runtime/testdata/testprog/syscall_windows.go
}() } wg.Wait() mem2, err := getPagefileUsage() if err != nil { panic(err) } // assumes that this process creates 1 thread for each // thread locked goroutine plus extra 10 threads // like sysmon and others print((mem2 - mem1) / (threadCount + 10))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 17:31:31 UTC 2023 - 1.5K bytes - Viewed (0) -
src/log/slog/slogtest_test.go
"encoding/json" "fmt" "io" "log/slog" "strings" "testing" "testing/slogtest" ) func TestSlogtest(t *testing.T) { for _, test := range []struct { name string new func(io.Writer) slog.Handler parse func([]byte) (map[string]any, error) }{ {"JSON", func(w io.Writer) slog.Handler { return slog.NewJSONHandler(w, nil) }, parseJSON},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:50:22 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan11.go
// license that can be found in the LICENSE file. package main // This program hung when run under the C/C++ ThreadSanitizer. TSAN defers // asynchronous signals until the signaled thread calls into libc. The runtime's // sysmon goroutine idles itself using direct usleep syscalls, so it could // run for an arbitrarily long time without triggering the libc interceptors. // See https://golang.org/issue/18717. import ( "os" "os/signal"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.2K bytes - Viewed (0) -
src/log/internal/internal.go
// license that can be found in the LICENSE file. // Package internal contains definitions used by both log and log/slog. package internal // DefaultOutput holds a function which calls the default log.Logger's // output function. // It allows slog.defaultHandler to call into an unexported function of // the log package.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 12 18:33:50 UTC 2023 - 487 bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_syso_issue29253.txt
env GO111MODULE=off [short] skip # This test tests that we can link in-package syso files that provides symbols # for cgo. See issue 29253. [!cgo] stop [!compiler:gc] stop cc -c -o pkg/o.syso ext.c go build main.go -- ext.c -- // +build ignore int f() { return 42; } -- pkg/pkg.go -- package pkg // extern int f(void); import "C" func init() { if v := C.f(); v != 42 { panic(v) } } -- main.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 450 bytes - Viewed (0) -
src/cmd/link/testdata/pe-binutils/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that a PE rsrc section is handled correctly (issue 39658). // // rsrc.syso is created using binutils with: // {x86_64,i686}-w64-mingw32-windres -i a.rc -o rsrc_$GOARCH.syso -O coff // where a.rc is a text file with the following content: // // resname RCDATA { // "Hello Gophers!\0", // "This is a test.\0", // } package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 26 18:15:09 UTC 2021 - 515 bytes - Viewed (0)