Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,020 for programs (1.63 sec)

  1. src/os/read_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	defer f.Close()
    	defer Remove(f.Name())
    
    	msg := "Programming today is a race between software engineers striving to " +
    		"build bigger and better idiot-proof programs, and the Universe trying " +
    		"to produce bigger and better idiots. So far, the Universe is winning."
    
    	if err := WriteFile(f.Name(), []byte(msg), 0644); err != nil {
    		t.Fatalf("WriteFile %s: %v", f.Name(), err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/log/slog/value_access_benchmark_test.go

    	if a.Kind() == KindAny {
    		return a.any, true
    	}
    	return nil, false
    }
    
    // Problem: adding a type means adding a method, which is a breaking change.
    // Using an unexported method to force embedding will make programs compile,
    // But they will panic at runtime when we call the new method.
    type Visitor interface {
    	String(string)
    	Int64(int64)
    	Uint64(uint64)
    	Float64(float64)
    	Bool(bool)
    	Duration(time.Duration)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/net/hosts_test.go

    	}
    	if !reflect.DeepEqual(hosts, ent.out) {
    		t.Errorf("%s, lookupStaticAddr(%s) = %v; want %v", hostsPath, ent.in, hosts, ent.out)
    	}
    }
    
    func TestHostCacheModification(t *testing.T) {
    	// Ensure that programs can't modify the internals of the host cache.
    	// See https://golang.org/issues/14212.
    	defer func(orig string) { hostsFilePath = orig }(hostsFilePath)
    
    	hostsFilePath = "testdata/ipv4-hosts"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/settings.md

        $ export MY_NAME="Wade Wilson"
    
        // Then you could use it with other programs, like
        $ echo "Hello $MY_NAME"
    
        Hello Wade Wilson
        ```
    
        </div>
    
    === "🚪 📋"
    
        <div class="termy">
    
        ```console
        // Create an env var MY_NAME
        $ $Env:MY_NAME = "Wade Wilson"
    
        // Use it with other programs, like
        $ echo "Hello $Env:MY_NAME"
    
        Hello Wade Wilson
        ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. src/time/tick.go

    func (t *Ticker) Stop() {
    	if !t.initTicker {
    		// This is misuse, and the same for time.Timer would panic,
    		// but this didn't always panic, and we keep it not panicking
    		// to avoid breaking old programs. See issue 21874.
    		return
    	}
    	stopTimer((*Timer)(unsafe.Pointer(t)))
    }
    
    // Reset stops a ticker and resets its period to the specified duration.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/runtime/trace/trace.go

    // Copyright 2015 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 trace contains facilities for programs to generate traces
    // for the Go execution tracer.
    //
    // # Tracing runtime activities
    //
    // The execution trace captures a wide range of execution events such as
    // goroutine creation/blocking/unblocking, syscall enter/exit/block,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 00:47:09 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. src/go/ast/scope.go

    // literal, depending on the type of T. If T is a struct, then K
    // refers to a field of T, whereas for the other types it refers to a
    // value in the environment.
    //
    // New programs should set the [parser.SkipObjectResolution] parser
    // flag to disable syntactic object resolution (which also saves CPU
    // and memory), and instead use the type checker [go/types] if object
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/runtime/write_err_android.go

    		if v := uintptr(access(&writeLogd[0], 0x02 /* W_OK */)); v == 0 {
    			logger = logd
    			initLogd()
    		} else {
    			logger = legacy
    			initLegacy()
    		}
    	}
    
    	// Write to stderr for command-line programs,
    	// and optionally to SetCrashOutput file.
    	writeErrData(&b[0], int32(len(b)))
    
    	// Log format: "<header>\x00<message m bytes>\x00"
    	//
    	// <header>
    	//   In legacy mode: "<priority 1 byte><tag n bytes>".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. src/os/exec/lp_windows.go

    	if len(exts) == 0 {
    		return file, chkStat(file)
    	}
    	if hasExt(file) {
    		if chkStat(file) == nil {
    			return file, nil
    		}
    		// Keep checking exts below, so that programs with weird names
    		// like "foo.bat.exe" will resolve instead of failing.
    	}
    	for _, e := range exts {
    		if f := file + e; chkStat(f) == nil {
    			return f, nil
    		}
    	}
    	if hasExt(file) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/regexp/syntax/doc.go

    // license that can be found in the LICENSE file.
    
    // Code generated by mksyntaxgo from the RE2 distribution. DO NOT EDIT.
    
    /*
    Package syntax parses regular expressions into parse trees and compiles
    parse trees into programs. Most clients of regular expressions will use the
    facilities of package [regexp] (such as [regexp.Compile] and [regexp.Match]) instead of this package.
    
    # Syntax
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:21:02 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top