Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for Input (0.15 sec)

  1. src/cmd/asm/internal/lex/input.go

    	"strings"
    	"text/scanner"
    
    	"cmd/asm/internal/flags"
    	"cmd/internal/objabi"
    	"cmd/internal/src"
    )
    
    // Input is the main input: a stack of readers and some macro definitions.
    // It also handles #include processing (by pushing onto the input stack)
    // and parses and instantiates macro definitions.
    type Input struct {
    	Stack
    	includes        []string
    	beginningOfLine bool
    	ifdefStack      []bool
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    		input[i] = byte(i % 251)
    		if i%101 == 0 {
    			input[i] ^= byte(i / 101)
    		}
    	}
    	return input
    }
    
    func TestReaderWriteTo(t *testing.T) {
    	input := createTestInput(8192)
    	r := NewReader(onlyReader{bytes.NewReader(input)})
    	w := new(bytes.Buffer)
    	if n, err := r.WriteTo(w); err != nil || n != int64(len(input)) {
    		t.Fatalf("r.WriteTo(w) = %d, %v, want %d, nil", n, err, len(input))
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. .github/ISSUE_TEMPLATE/01-pkgsite.yml

    labels: ["pkgsite"]
    body:
      - type: markdown
        attributes:
          value: "Please answer these questions before submitting your issue. Thanks!"
      - type: input
        id: url
        attributes:
          label: "What is the URL of the page with the issue?"
        validations:
          required: true
      - type: input
        id: user-agent
        attributes:
          label: "What is your user agent?"
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/operand_test.go

    		err := tryParse(t, func() {
    			parser.start(lex.Tokenize(test.input))
    			addr := obj.Addr{}
    			parser.operand(&addr)
    		})
    
    		switch {
    		case err == nil:
    			t.Errorf("fail at %s: got no errors; expected %s\n", test.input, test.error)
    		case !strings.Contains(err.Error(), test.error):
    			t.Errorf("fail at %s: got %s; expected %s", test.input, err, test.error)
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    	}, {
    		input: makeInput(FormatGNU, "",
    			makeSparseStrings(sparseDatas{{10 << 30, 512}, {20 << 30, 512}})...),
    		wantMap: sparseDatas{{10 << 30, 512}, {20 << 30, 512}},
    	}}
    
    	for i, v := range vectors {
    		var blk block
    		var hdr Header
    		v.input = v.input[copy(blk[:], v.input):]
    		tr := Reader{r: bytes.NewReader(v.input)}
    		got, err := tr.readOldGNUSparseMap(&hdr, &blk)
    		if !equalSparseEntries(got, v.wantMap) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  6. src/archive/tar/strconv_test.go

    		{-012345670123, 12, false},
    		{-01564164, 12, false},
    		{-1564164, 30, false},
    	}
    
    	for _, v := range vectors {
    		ok := fitsInOctal(v.width, v.input)
    		if ok != v.ok {
    			t.Errorf("checkOctal(%d, %d): got %v, want %v", v.input, v.width, ok, v.ok)
    		}
    	}
    }
    
    func TestParsePAXTime(t *testing.T) {
    	vectors := []struct {
    		in   string
    		want time.Time
    		ok   bool
    	}{
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/11-language-change.yml

          description: "What is the cost of this proposal? (Every language change has a cost)"
    
      - type: input
        id: go-toolchain
        attributes:
          label: Changes to Go ToolChain
          description: "How many tools (such as vet, gopls, gofmt, goimports, etc.) would be affected? "
        validations:
          required: false
    
      - type: input
        id: perf-costs
        attributes:
          label: Performance Costs
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 22 20:49:24 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  8. src/arena/arena.go

    func MakeSlice[T any](a *Arena, len, cap int) []T {
    	var sl []T
    	runtime_arena_arena_Slice(a.a, &sl, cap)
    	return sl[:len]
    }
    
    // Clone makes a shallow copy of the input value that is no longer bound to any
    // arena it may have been allocated from, returning the copy. If it was not
    // allocated from an arena, it is returned untouched. This function is useful
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/swig/testdata/stdio/main.swig

    %{
    #include <stdio.h>
    #include <stdlib.h>
    %}
    
    %typemap(gotype) const char * "string"
    %typemap(in) const char * %{
    	$1 = malloc($input.n + 1);
    	memcpy($1, $input.p, $input.n);
    	$1[$input.n] = '\0';
    %}
    %typemap(freearg) const char * %{
    	free($1);
    %}
    
    FILE *fopen(const char *name, const char *mode);
    int fclose(FILE *);
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 563 bytes
    - Viewed (0)
  10. src/cmd/cgo/ast.go

    // Copyright 2009 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.
    
    // Parse input AST and prepare Prog structure.
    
    package main
    
    import (
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"os"
    	"strings"
    )
    
    func parse(name string, src []byte, flags parser.Mode) *ast.File {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top