Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for strong (0.18 sec)

  1. src/archive/tar/strconv_test.go

    				v.sec, v.nsec, got, v.want)
    		}
    	}
    }
    
    func TestParsePAXRecord(t *testing.T) {
    	medName := strings.Repeat("CD", 50)
    	longName := strings.Repeat("AB", 100)
    
    	vectors := []struct {
    		in      string
    		wantRes string
    		wantKey string
    		wantVal string
    		ok      bool
    	}{
    		{"6 k=v\n\n", "\n", "k", "v", true},
    		{"19 path=/etc/hosts\n", "", "path", "/etc/hosts", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    	// }
    	import "C"
    	import "unsafe"
    
    	func main() {
    		cs := C.CString("Hello from stdio")
    		C.myprint(cs)
    		C.free(unsafe.Pointer(cs))
    	}
    
    A few special functions convert between Go and C types
    by making copies of the data. In pseudo-Go definitions:
    
    	// Go string to C string
    	// The C string is allocated in the C heap using malloc.
    	// It is the caller's responsibility to arrange for it to be
    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)
  3. api/go1.5.txt

    pkg mime, func ExtensionsByType(string) ([]string, error)
    pkg mime, method (*WordDecoder) Decode(string) (string, error)
    pkg mime, method (*WordDecoder) DecodeHeader(string) (string, error)
    pkg mime, method (WordEncoder) Encode(string, string) string
    pkg mime, type WordDecoder struct
    pkg mime, type WordDecoder struct, CharsetReader func(string, io.Reader) (io.Reader, error)
    pkg mime, type WordEncoder uint8
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/swig/swig_test.go

    		}
    		return x
    	}
    	var major, minor, patch int
    	major = atoi(string(matches[1]))
    	if len(matches[2]) > 0 {
    		minor = atoi(string(matches[2][1:]))
    	}
    	if len(matches[3]) > 0 {
    		patch = atoi(string(matches[3][1:]))
    	}
    	if parseError != nil {
    		t.Logf("error parsing swig version %q, continuing anyway: %s", string(matches[0]), parseError)
    		return
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. src/cmd/api/api_test.go

    			features: []string{"A", "B", "C", "D", "E", "F"},
    			required: []string{"B", "D"},
    			ok:       false,
    			out:      "+A\n+C\n+E\n+F\n",
    		},
    		{
    			name:     "feature removed",
    			features: []string{"C", "A"},
    			required: []string{"A", "B", "C"},
    			ok:       false,
    			out:      "-B\n",
    		},
    		{
    			name:      "exception removal",
    			features:  []string{"A", "C"},
    			required:  []string{"A", "B", "C"},
    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)
  6. src/bufio/bufio_test.go

    		if err == io.EOF {
    			break
    		}
    	}
    	return string(b[0:nb])
    }
    
    type bufReader struct {
    	name string
    	fn   func(*Reader) string
    }
    
    var bufreaders = []bufReader{
    	{"1", func(b *Reader) string { return reads(b, 1) }},
    	{"2", func(b *Reader) string { return reads(b, 2) }},
    	{"3", func(b *Reader) string { return reads(b, 3) }},
    	{"4", func(b *Reader) string { return reads(b, 4) }},
    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/bytes/buffer_test.go

    }
    
    var readBytesTests = []struct {
    	buffer   string
    	delim    byte
    	expected []string
    	err      error
    }{
    	{"", 0, []string{""}, io.EOF},
    	{"a\x00", 0, []string{"a\x00"}, nil},
    	{"abbbaaaba", 'b', []string{"ab", "b", "b", "aaab"}, nil},
    	{"hello\x01world", 1, []string{"hello\x01"}, nil},
    	{"foo\nbar", 0, []string{"foo\nbar"}, io.EOF},
    	{"alpha\nbeta\ngamma\n", '\n', []string{"alpha\n", "beta\n", "gamma\n"}, nil},
    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)
  8. src/cmd/api/testdata/src/pkg/p1/p1.go

    	// Deprecated: use T.
    	S
    	Extra bool
    }
    
    var X0 int64
    
    var (
    	Y int
    	X I
    )
    
    type Namer interface {
    	Name() string
    }
    
    type I interface {
    	Namer
    	ptwo.Twoer
    	Set(name string, balance int64)
    	// Deprecated: use GetNamed.
    	Get(string) int64
    	GetNamed(string) (balance int64)
    	private()
    }
    
    type Public interface {
    	X()
    	Y()
    }
    
    // Deprecated: Use Unexported.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/swig/testdata/callback/main.go

    	}
    	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()
    
    	c.SetCallback(cb)
    	s := c.Call()
    	if s != "Callback::run" {
    		fatal("unexpected string from Call: %q", s)
    	}
    	c.DelCallback()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 1K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    particular architecture.
    </p>
    
    <h3 id="String_types">String types</h3>
    
    <p>
    A <i>string type</i> represents the set of string values.
    A string value is a (possibly empty) sequence of bytes.
    The number of bytes is called the length of the string and is never negative.
    Strings are immutable: once created,
    it is impossible to change the contents of a string.
    The predeclared string type is <code>string</code>;
    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)
Back to top