Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for Fprintf (0.2 sec)

  1. src/cmd/api/api_test.go

    		w.export(pkg)
    
    		if *updateGolden {
    			os.Remove(goldenFile)
    			f, err := os.Create(goldenFile)
    			if err != nil {
    				t.Fatal(err)
    			}
    			for _, feat := range w.Features() {
    				fmt.Fprintf(f, "%s\n", feat)
    			}
    			f.Close()
    		}
    
    		bs, err := os.ReadFile(goldenFile)
    		if err != nil {
    			t.Fatalf("opening golden.txt for package %q: %v", fi.Name(), err)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/flags/flags.go

    type MultiFlag []string
    
    func (m *MultiFlag) String() string {
    	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)
    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)
  3. src/cmd/cgo/ast.go

    						// but we double check here just to be sure.
    						fatalf("internal error: ParseGo: abspath contains unexpected newline character: %q", abspath)
    					}
    					f.Preamble += fmt.Sprintf("#line %d %q\n", sourceLine(cg), abspath)
    					f.Preamble += commentText(cg) + "\n"
    					f.Preamble += "#line 1 \"cgo-generated-wrapper\"\n"
    				}
    			}
    
    		case *ast.FuncDecl:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/swig/testdata/callback/main.go

    	default:
    		fatal("unknown test %q", os.Args[1])
    	case "Call":
    		testCall()
    	case "Callback":
    		testCallback()
    	}
    	println("OK")
    }
    
    func fatal(f string, args ...any) {
    	fmt.Fprintln(os.Stderr, fmt.Sprintf(f, args...))
    	os.Exit(1)
    }
    
    type GoCallback struct{}
    
    func (p *GoCallback) Run() string {
    	return "GoCallback.Run"
    }
    
    func testCall() {
    	c := NewCaller()
    	cb := NewCallback()
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 1K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    	// Invalid runes, including negative ones, should be written as
    	// utf8.RuneError.
    	for _, r := range []rune{-1, utf8.MaxRune + 1} {
    		var buf Buffer
    		buf.WriteRune(r)
    		check(t, fmt.Sprintf("TestWriteInvalidRune (%d)", r), &buf, "\uFFFD")
    	}
    }
    
    func TestNext(t *testing.T) {
    	b := []byte{0, 1, 2, 3, 4}
    	tmp := make([]byte, 5)
    	for i := 0; i <= 5; i++ {
    		for j := i; j <= 5; j++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. src/bufio/bufio_test.go

    				t.Errorf("%s: len(Peek(%d)) = %v; want %v", tt.name, tt.peekSize, len(peekBuf), tt.peekSize)
    				continue
    			}
    		}
    		discarded, err := br.Discard(tt.n)
    		if ge, we := fmt.Sprint(err), fmt.Sprint(tt.wantErr); discarded != tt.want || ge != we {
    			t.Errorf("%s: Discard(%d) = (%v, %v); want (%v, %v)", tt.name, tt.n, discarded, ge, tt.want, we)
    			continue
    		}
    		if bn := br.Buffered(); bn != tt.wantBuffered {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/doc.go

    invoking the C compiler to compile the C parts of the package.
    
    The following options are available when running cgo directly:
    
    	-V
    		Print cgo version and exit.
    	-debug-define
    		Debugging option. Print #defines.
    	-debug-gcc
    		Debugging option. Trace C compiler execution and output.
    	-dynimport file
    		Write list of symbols imported by file. Write to
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  8. doc/go1.17_spec.html

    </p>
    
    <pre class="grammar">
    Function   Behavior
    
    print      prints all arguments; formatting of arguments is implementation-specific
    println    like print but prints spaces between arguments and a newline at the end
    </pre>
    
    <p>
    Implementation restriction: <code>print</code> and <code>println</code> need not
    accept arbitrary argument types, but printing of boolean, numeric, and string
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/operand_test.go

    package asm
    
    import (
    	"internal/buildcfg"
    	"strings"
    	"testing"
    
    	"cmd/asm/internal/arch"
    	"cmd/asm/internal/lex"
    	"cmd/internal/obj"
    )
    
    // A simple in-out test: Do we print what we parse?
    
    func setArch(goarch string) (*arch.Arch, *obj.Link) {
    	buildcfg.GOOS = "linux" // obj can handle this OS for all architectures.
    	buildcfg.GOARCH = goarch
    	architecture := arch.Set(goarch, false)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  10. 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)
Back to top