Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for fortune (0.63 sec)

  1. src/os/exec/example_test.go

    	"context"
    	"encoding/json"
    	"fmt"
    	"io"
    	"log"
    	"os"
    	"os/exec"
    	"strings"
    	"time"
    )
    
    func ExampleLookPath() {
    	path, err := exec.LookPath("fortune")
    	if err != nil {
    		log.Fatal("installing fortune is in your future")
    	}
    	fmt.Printf("fortune is available at %s\n", path)
    }
    
    func ExampleCommand() {
    	cmd := exec.Command("tr", "a-z", "A-Z")
    	cmd.Stdin = strings.NewReader("some input")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 06:18:48 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_trimpath.txt

    # A binary from an external module built with -trimpath should not contain
    # the current workspace or GOROOT.
    go get rsc.io/fortune
    go install -trimpath rsc.io/fortune
    exec $WORK/paths-a.exe $GOPATH/bin/fortune$GOEXE
    stdout 'binary contains module root: false'
    stdout 'binary contains an empty GOROOT'
    go mod edit -droprequire rsc.io/fortune
    
    # Two binaries built from identical packages in different directories
    # should be identical.
    cd $WORK/b/src/paths
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/gotoolchain_path.txt

    stderr 'running go1.50.0 from PATH'
    
    # NewerToolchain should find Go 1.50.0.
    env GOTOOLCHAIN=local
    go mod edit -toolchain=none -go=1.22
    grep 'go 1.22$' go.mod
    ! grep toolchain go.mod
    env GOTOOLCHAIN=path
    ! go run rsc.io/fortune@v0.0.1
    stderr 'running go1.50.0 from PATH'
    
    -- fakego.go --
    package main
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    func main() {
    	exe, _ := os.Executable()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 06 22:21:42 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/embed/internal/embedtest/embed_test.go

    	t.Logf("//go:embed testdata/*")
    
    	testDir(t, star, "testdata",
    		"-not-hidden/", ".hidden/", "_hidden/", "ascii.txt", "glass.txt", "hello.txt", "i/", "ken.txt")
    
    	testDir(t, star, "testdata/.hidden",
    		"fortune.txt", "more/") // but not .more or _more
    }
    
    func TestUninitialized(t *testing.T) {
    	var uninitialized embed.FS
    	testDir(t, uninitialized, ".")
    	f, err := uninitialized.Open(".")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 20:10:16 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ManagedChildNodeCreatorStrategy.java

    import org.gradle.model.internal.core.NodeInitializer;
    import org.gradle.model.internal.core.NodeInitializerRegistry;
    import org.gradle.model.internal.type.ModelType;
    
    import static org.gradle.model.internal.core.NodeInitializerContext.forType;
    
    public class ManagedChildNodeCreatorStrategy<T> implements ChildNodeInitializerStrategy<T> {
    
        private final NodeInitializerRegistry nodeInitializerRegistry;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ValidateStepTest.groovy

      - ${validationProblem}"""
            }
            _ * work.validate(_ as WorkValidationContext) >> { WorkValidationContext validationContext ->
                validationContext.forType(JobType, true).visitTypeProblem {
                    it
                        .withAnnotationType(Object)
                        .id("test-problem", "Validation error", GradleCoreProblemGroup.validation())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/tests/mlrt/rewrite_ifrt_load_variable.mlir

    // CHECK-NEXT:    [[HANDLE:%.*]] = "tf.VarHandleOp"()
    // CHECK-NEXT:    [[ARRAYKEY:%.*]], [[FURTURE:%.*]] = "tf_mlrt.tf_ifrt_load_variable"([[HANDLE]])
    // CHECK-SAME:       <{used_by_host = true}> : (tensor<!tf_type.resource<tensor<3x1xf32>>>) -> (tensor<!tf_type.string>, !mlrt.future)
    // CHECK-NEXT:    [[TENSOR:%.*]] = "tf_mlrt.tf_await"([[FURTURE]]) : (!mlrt.future) -> tensor<3x1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/TransformedModelDslBacking.java

    import org.gradle.model.internal.type.ModelType;
    
    import static org.gradle.model.internal.core.DefaultNodeInitializerRegistry.DEFAULT_REFERENCE;
    import static org.gradle.model.internal.core.NodeInitializerContext.forType;
    
    @ThreadSafe
    public class TransformedModelDslBacking {
        private final ModelRegistry modelRegistry;
        private final ClosureBackedRuleFactory ruleFactory;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ManagedModelCreationRuleExtractor.java

    import org.gradle.model.internal.type.ModelType;
    
    import java.util.Collections;
    import java.util.List;
    import java.util.Map;
    
    import static org.gradle.model.internal.core.NodeInitializerContext.forType;
    
    public class ManagedModelCreationRuleExtractor extends AbstractModelCreationRuleExtractor {
        private static final ModelType<NodeInitializerRegistry> NODE_INITIALIZER_REGISTRY = ModelType.of(NodeInitializerRegistry.class);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/ManagedNodeBackedModelMapTest.groovy

    import org.gradle.model.internal.manage.binding.InvalidManagedTypeException
    
    import static org.gradle.model.ModelTypeTesting.fullyQualifiedNameOf
    import static org.gradle.model.internal.core.NodeInitializerContext.forType
    
    class ManagedNodeBackedModelMapTest extends NodeBackedModelMapSpec<NamedThingInterface, SpecialNamedThingInterface> {
    
        Class<NamedThingInterface> itemClass = NamedThingInterface
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top