Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 739 for Printf (0.18 sec)

  1. src/archive/tar/example_test.go

    	tr := tar.NewReader(&buf)
    	for {
    		hdr, err := tr.Next()
    		if err == io.EOF {
    			break // End of archive
    		}
    		if err != nil {
    			log.Fatal(err)
    		}
    		fmt.Printf("Contents of %s:\n", hdr.Name)
    		if _, err := io.Copy(os.Stdout, tr); err != nil {
    			log.Fatal(err)
    		}
    		fmt.Println()
    	}
    
    	// Output:
    	// Contents of readme.txt:
    	// This archive contains some text files.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  2. common/scripts/tracing.sh

      else
        # Postsubmit or periodic
        url="https://prow.istio.io/view/gs/istio-prow/pr-logs/${JOB_NAME}/${BUILD_ID},"
      fi
      # Use printf instead of echo to avoid spaces between args
      printf '%s' "ci.pipeline.id=${JOB_NAME},"\
        "ci.pipeline.type=${JOB_TYPE},"\
        "ci.pipeline.run.url=${url}"\
        "ci.pipeline.run.number=${BUILD_ID},"\
        "ci.pipeline.run.id=${PROW_JOB_ID},"\
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jul 28 15:25:47 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. docs/recipes.md

            executor.schedule({
              System.out.printf("%.2f Canceling call.%n", (System.nanoTime() - startNanos) / 1e9f)
              call.cancel()
              System.out.printf("%.2f Canceled call.%n", (System.nanoTime() - startNanos) / 1e9f)
            }, 1, TimeUnit.SECONDS)
    
            System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f)
            try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  4. buildscripts/cross-compile.sh

    }
    
    function _build() {
    	local osarch=$1
    	IFS=/ read -r -a arr <<<"$osarch"
    	os="${arr[0]}"
    	arch="${arr[1]}"
    	package=$(go list -f '{{.ImportPath}}')
    	printf -- "--> %15s:%s\n" "${osarch}" "${package}"
    
    	# go build -trimpath to build the binary.
    	export GOOS=$os
    	export GOARCH=$arch
    	export GO111MODULE=on
    	go build -trimpath -tags kqueue -o /dev/null
    }
    
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 19 01:08:22 GMT 2023
    - 958 bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/parse.go

    			default:
    				a.Type = obj.TYPE_MEM
    			}
    			// fmt.Printf("CONST %d %s\n", a.Offset, obj.Dconv(&emptyProg, 0, a))
    			p.expectOperandEnd()
    			return
    		}
    		// fmt.Printf("offset %d \n", a.Offset)
    	}
    
    	// Register indirection: (reg) or (index*scale). We are on the opening paren.
    	p.registerIndirect(a, prefix)
    	// fmt.Printf("DONE %s\n", p.arch.Dconv(&emptyProg, 0, a))
    
    	p.expectOperandEnd()
    	return
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

          final AtomicLong nextCallId = new AtomicLong(1L);
    
          @Override public EventListener create(Call call) {
            long callId = nextCallId.getAndIncrement();
            System.out.printf("%04d %s%n", callId, call.request().url());
            return new PrintingEventListener(callId, System.nanoTime());
          }
        };
    
        final long callId;
        final long callStartNanos;
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  7. internal/logger/utils.go

    	"fmt"
    	"net/http"
    	"regexp"
    	"runtime"
    
    	"github.com/minio/minio/internal/color"
    )
    
    var ansiRE = regexp.MustCompile("(\x1b[^m]*m)")
    
    // Print ANSI Control escape
    func ansiEscape(format string, args ...interface{}) {
    	Esc := "\x1b"
    	fmt.Printf("%s%s", Esc, fmt.Sprintf(format, args...))
    }
    
    func ansiMoveRight(n int) {
    	if runtime.GOOS == "windows" {
    		return
    	}
    	if color.IsTerminal() {
    		ansiEscape("[%dC", n)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 04 23:10:08 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  8. operator/cmd/mesh/profile-list.go

    		return err
    	}
    	if len(profiles) == 0 {
    		cmd.Println("No profiles available.")
    	} else {
    		cmd.Println("Istio configuration profiles:")
    		sort.Strings(profiles)
    		for _, profile := range profiles {
    			cmd.Printf("    %s\n", profile)
    		}
    	}
    
    	return nil
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. docs/site-replication/gen-oidc-sts-cred.go

    				Token: oidcToken,
    			}, nil
    		},
    		RoleARN: roleARN,
    	}
    
    	value, err := webID.Retrieve()
    	if err != nil {
    		log.Fatalf("Expected to generate credentials: %v", err)
    	}
    
    	// Print credentials separated by colons:
    	fmt.Printf("%s:%s:%s\n", value.AccessKeyID, value.SecretAccessKey, value.SessionToken)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/TestTls13Request.kt

      return OkHttpClient.Builder()
        .connectionSpecs(listOf(*specs))
        .build()
    }
    
    private fun sendRequest(
      client: OkHttpClient,
      url: String,
    ) {
      System.out.printf("%-40s ", url)
      System.out.flush()
      println(Platform.get())
      val request =
        Request.Builder()
          .url(url)
          .build()
      try {
        client.newCall(request).execute().use { response ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top