Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for Printf (0.3 sec)

  1. misc/ios/detect.go

    		pcert, err := x509.ParseCertificate(cert)
    		check(err)
    		fmt.Printf("export GOIOS_DEV_ID=\"%s\"\n", pcert.Subject.CommonName)
    
    		appID, err := plistExtract(fname, "Entitlements:application-identifier")
    		check(err)
    		fmt.Printf("export GOIOS_APP_ID=%s\n", appID)
    
    		teamID, err := plistExtract(fname, "Entitlements:com.apple.developer.team-identifier")
    		check(err)
    		fmt.Printf("export GOIOS_TEAM_ID=%s\n", teamID)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/api/boring_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build boringcrypto
    
    package main
    
    import (
    	"fmt"
    	"os"
    )
    
    func init() {
    	fmt.Printf("SKIP with boringcrypto enabled\n")
    	os.Exit(0)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 16 16:02:26 GMT 2023
    - 300 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/bytes/example_test.go

    	b.Write([]byte("64 bytes or fewer"))
    	fmt.Printf("%q", bb[:b.Len()])
    	// Output: "64 bytes or fewer"
    }
    
    func ExampleBuffer_Len() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%d", b.Len())
    	// Output: 5
    }
    
    func ExampleBuffer_Next() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s", b.Next(2))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  6. misc/linkcheck/linkcheck.go

    	}
    	if *verbose {
    		log.Printf("Len of %s: %d", url, len(slurp))
    	}
    	body := string(slurp)
    	for _, ref := range localLinks(body) {
    		if *verbose {
    			log.Printf("  links to %s", ref)
    		}
    		dest := *root + ref
    		linkSources[dest] = append(linkSources[dest], url)
    		crawl(dest, url)
    	}
    	for _, id := range pageIDs(body) {
    		if *verbose {
    			log.Printf(" url %s has #%s", url, id)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  7. src/cmd/asm/main.go

    			break
    		}
    	}
    	if ok && !*flags.SymABIs {
    		ctxt.NumberSyms()
    		obj.WriteObjFile(ctxt, buf)
    	}
    	if !ok || diag {
    		if failedFile != "" {
    			log.Printf("assembly of %s failed", failedFile)
    		} else {
    			log.Print("assembly failed")
    		}
    		buf.Close()
    		os.Remove(*flags.OutputFile)
    		os.Exit(1)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  8. src/bufio/example_test.go

    		}
    		return
    	}
    	// Set the split function for the scanning operation.
    	scanner.Split(split)
    	// Validate the input
    	for scanner.Scan() {
    		fmt.Printf("%s\n", scanner.Text())
    	}
    
    	if err := scanner.Err(); err != nil {
    		fmt.Printf("Invalid input: %s", err)
    	}
    	// Output:
    	// 1234
    	// 5678
    	// Invalid input: strconv.ParseInt: parsing "1234567901234567890": value out of range
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/flags/flags.go

    	if len(*m) == 0 {
    		return ""
    	}
    	return fmt.Sprint(*m)
    }
    
    func (m *MultiFlag) Set(val string) error {
    	(*m) = append(*m, val)
    	return nil
    }
    
    func Usage() {
    	fmt.Fprintf(os.Stderr, "usage: asm [options] file.s ...\n")
    	fmt.Fprintf(os.Stderr, "Flags:\n")
    	flag.PrintDefaults()
    	os.Exit(2)
    }
    
    func Parse() {
    	objabi.Flagparse(Usage)
    	if flag.NArg() == 0 {
    		flag.Usage()
    	}
    
    	// Flag refinement.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  10. doc/go_spec.html

    iteration's variable at that moment.
    </p>
    
    <pre>
    var prints []func()
    for i := 0; i < 5; i++ {
    	prints = append(prints, func() { println(i) })
    	i++
    }
    for _, p := range prints {
    	p()
    }
    </pre>
    
    <p>
    prints
    </p>
    
    <pre>
    1
    3
    5
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top