Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 961 for fSlice (0.1 sec)

  1. src/testing/quick/quick_test.go

    	reportError("fMapAlias", CheckEqual(fMapAlias, fMapAlias, nil), t)
    	reportError("fPtr", CheckEqual(fPtr, fPtr, nil), t)
    	reportError("fPtrAlias", CheckEqual(fPtrAlias, fPtrAlias, nil), t)
    	reportError("fSlice", CheckEqual(fSlice, fSlice, nil), t)
    	reportError("fSliceAlias", CheckEqual(fSliceAlias, fSliceAlias, nil), t)
    	reportError("fString", CheckEqual(fString, fString, nil), t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/print/print.go

    	var x float64
    	var p *int
    	var imap map[int]int
    	var fslice []float64
    	var c complex64
    	// Some good format/argtypes
    	fmt.Printf("")
    	fmt.Printf("%b %b %b", 3, i, x)
    	fmt.Printf("%c %c %c %c", 3, i, 'x', r)
    	fmt.Printf("%d %d %d", 3, i, imap)
    	fmt.Printf("%e %e %e %e", 3e9, x, fslice, c)
    	fmt.Printf("%E %E %E %E", 3e9, x, fslice, c)
    	fmt.Printf("%f %f %f %f", 3e9, x, fslice, c)
    	fmt.Printf("%F %F %F %F", 3e9, x, fslice, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/splice.go

    */
    
    package runtime
    
    import (
    	"bytes"
    	"io"
    )
    
    // Splice is the interface that wraps the Splice method.
    //
    // Splice moves data from given slice without copying the underlying data for
    // efficiency purpose. Therefore, the caller should make sure the underlying
    // data is not changed later.
    type Splice interface {
    	Splice([]byte)
    	io.Writer
    	Reset()
    	Bytes() []byte
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 18:03:48 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. src/go/types/slice.go

    // Source: ../../cmd/compile/internal/types2/slice.go
    
    // Copyright 2011 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.
    
    package types
    
    // A Slice represents a slice type.
    type Slice struct {
    	elem Type
    }
    
    // NewSlice returns a new slice type for the given element type.
    func NewSlice(elem Type) *Slice { return &Slice{elem: elem} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 701 bytes
    - Viewed (0)
  5. src/sort/slice.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package sort
    
    import (
    	"internal/reflectlite"
    	"math/bits"
    )
    
    // Slice sorts the slice x given the provided less function.
    // It panics if x is not a slice.
    //
    // The sort is not guaranteed to be stable: equal elements
    // may be reversed from their original order.
    // For a stable sort, use [SliceStable].
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/slice.go

    package types2
    
    // A Slice represents a slice type.
    type Slice struct {
    	elem Type
    }
    
    // NewSlice returns a new slice type for the given element type.
    func NewSlice(elem Type) *Slice { return &Slice{elem: elem} }
    
    // Elem returns the element type of slice s.
    func (s *Slice) Elem() Type { return s.elem }
    
    func (s *Slice) Underlying() Type { return s }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 577 bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/slice.go

    	"cmd/internal/src"
    )
    
    // A Slice reads from a slice of Tokens.
    type Slice struct {
    	tokens []Token
    	base   *src.PosBase
    	line   int
    	pos    int
    }
    
    func NewSlice(base *src.PosBase, line int, tokens []Token) *Slice {
    	return &Slice{
    		tokens: tokens,
    		base:   base,
    		line:   line,
    		pos:    -1, // Next will advance to zero.
    	}
    }
    
    func (s *Slice) Next() ScanToken {
    	s.pos++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 29 22:49:50 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. pkg/auth/authorizer/abac/abac_test.go

    		{User: uAlice, Verb: "update", Resource: "pods", NS: "projectCaribou", ExpectDecision: authorizer.DecisionAllow},
    		{User: uAlice, Verb: "update", Resource: "widgets", NS: "projectCaribou", ExpectDecision: authorizer.DecisionAllow},
    		{User: uAlice, Verb: "update", Resource: "", NS: "projectCaribou", ExpectDecision: authorizer.DecisionAllow},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 40K bytes
    - Viewed (0)
  9. src/runtime/slice.go

    package runtime
    
    import (
    	"internal/abi"
    	"internal/goarch"
    	"runtime/internal/math"
    	"runtime/internal/sys"
    	"unsafe"
    )
    
    type slice struct {
    	array unsafe.Pointer
    	len   int
    	cap   int
    }
    
    // A notInHeapSlice is a slice backed by runtime/internal/sys.NotInHeap memory.
    type notInHeapSlice struct {
    	array *notInHeap
    	len   int
    	cap   int
    }
    
    func panicmakeslicelen() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. pkg/util/slice/slice.go

    // SortStrings sorts the specified string slice in place. It returns the same
    // slice that was provided in order to facilitate method chaining.
    func SortStrings(s []string) []string {
    	sort.Strings(s)
    	return s
    }
    
    // ContainsString checks if a given slice of strings contains the provided string.
    // If a modifier func is provided, it is called with the slice item before the comparation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 21 19:03:53 UTC 2019
    - 2.1K bytes
    - Viewed (0)
Back to top