Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,005 for Implementation (0.31 sec)

  1. src/strings/compare_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package strings_test
    
    // Derived from bytes/compare_test.go.
    // Benchmarks omitted since the underlying implementation is identical.
    
    import (
    	"internal/testenv"
    	. "strings"
    	"testing"
    	"unsafe"
    )
    
    var compareTests = []struct {
    	a, b string
    	i    int
    }{
    	{"", "", 0},
    	{"a", "", 1},
    	{"", "a", -1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:33:55 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  2. src/go/doc/comment/wrap_test.go

    					}
    
    					// Check that score matches slow reference implementation.
    					slowSeq, slowScore := wrapSlow(words, max)
    					if score != slowScore {
    						t.Fatalf("wrap score = %d != wrapSlow score %d\nwrap: %v\nslow: %v", score, slowScore, seq, slowSeq)
    					}
    				})
    			}
    		})
    	}
    }
    
    // wrapSlow is an O(n²) reference implementation for wrap.
    // It returns a minimal-score sequence along with the score.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/toonew.go

    	// nested fields and methods than are shown here.) Clients
    	// that use the compatibility shim T will compile with any
    	// version of go, whether older or newer than go1.22, but only
    	// the newer version will use the std.Real implementation.
    	//
    	// Now consider a reference to method M in new(T).F.M() in a
    	// module that requires a minimum of go1.21. The analysis may
    	// occur using a version of Go higher than 1.21, selecting the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/runtime/netpoll_aix.go

    package runtime
    
    import (
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    // This is based on the former libgo/runtime/netpoll_select.c implementation
    // except that it uses poll instead of select and is written in Go.
    // It's also based on Solaris implementation for the arming mechanisms
    
    //go:cgo_import_dynamic libc_poll poll "libc.a/shr_64.o"
    //go:linkname libc_poll libc_poll
    
    var libc_poll libFunc
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. pkg/volume/util/selinux.go

    	// or don't support SELinux at all.
    	SELinuxOptionsToFileLabel(opts *v1.SELinuxOptions) (string, error)
    
    	// SELinuxEnabled returns true when the OS has enabled SELinux support.
    	SELinuxEnabled() bool
    }
    
    // Real implementation of the interface.
    // On Linux with SELinux enabled it translates. Otherwise it always returns an empty string and no error.
    type translator struct{}
    
    var _ SELinuxLabelTranslator = &translator{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 14:40:21 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. pkg/util/coverage/fake_test_deps.go

    limitations under the License.
    */
    
    package coverage
    
    import (
    	"io"
    	"reflect"
    	"time"
    )
    
    // This is an implementation of testing.testDeps. It doesn't need to do anything, because
    // no tests are actually run. It does need a concrete implementation of at least ImportPath,
    // which is called unconditionally when running tests.
    //
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 15:31:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go

    	return &cachingAuthorizer{
    		authorizer: in,
    		decisions:  make(map[string]authzResult),
    	}
    }
    
    // The attribute accessors known to cache key construction. If this fails to compile, the cache
    // implementation may need to be updated.
    var _ authorizer.Attributes = (interface {
    	GetUser() user.Info
    	GetVerb() string
    	IsReadOnly() bool
    	GetNamespace() string
    	GetResource() string
    	GetSubresource() string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue51139.go

    	f([]chan int{}, make(chan int))
    	f /* ERROR "[]chan int does not satisfy []L ([]chan int missing in []p.L)" */ ([]chan int{}, make(L))
    }
    
    // test case from issue
    
    func Append[S ~[]T, T any](s S, x ...T) S { /* implementation of append */ return s }
    
    func _() {
            type MyPtr *int
            var x []MyPtr
            _ = append(x, new(int))
            _ = Append(x, new(int))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 20:55:32 UTC 2023
    - 649 bytes
    - Viewed (0)
  9. pkg/registry/storage/volumeattributesclass/doc.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package volumeattributesclass provides Registry interface and its REST
    // implementation for storing volumeattributesclass api objects.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 740 bytes
    - Viewed (0)
  10. internal/arn/arn.go

    package arn
    
    import (
    	"errors"
    	"fmt"
    	"regexp"
    	"strings"
    )
    
    // ARN structure:
    //
    // arn:partition:service:region:account-id:resource-type/resource-id
    //
    // In this implementation, account-id is empty.
    //
    // Reference: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
    
    const (
    	arnPrefixArn        = "arn"
    	arnPartitionMinio   = "minio"
    	arnServiceIAM       = "iam"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top