Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for something (0.17 sec)

  1. src/bytes/bytes_test.go

    		}
    	}
    }
    
    func TestLastIndexByte(t *testing.T) {
    	testCases := []BinOpTest{
    		{"", "q", -1},
    		{"abcdef", "q", -1},
    		{"abcdefabcdef", "a", len("abcdef")},      // something in the middle
    		{"abcdefabcdef", "f", len("abcdefabcde")}, // last byte
    		{"zabcdefabcdef", "z", 0},                 // first byte
    		{"a☺b☻c☹d", "b", len("a☺")},               // non-ascii
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    func (c *Connection) handleMessages(ctx context.Context, conn net.Conn) {
    	c.updateState(StateConnected)
    	ctx, cancel := context.WithCancelCause(ctx)
    	defer cancel(ErrDisconnected)
    
    	// This will ensure that is something asks to disconnect and we are blocked on reads/writes
    	// the connection will be closed and readers/writers will unblock.
    	go c.monitorState(conn, cancel)
    
    	c.handleMsgWg.Add(2)
    	c.reconnectMu.Unlock()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  3. cmd/auth-handler.go

    		// base64 encoded, decode it. Decoding fails reject such
    		// requests.
    		spBytes, err := base64.StdEncoding.DecodeString(sp)
    		if err != nil {
    			// Base64 decoding fails, we should log to indicate
    			// something is malforming the request sent by client.
    			authNLogIf(GlobalContext, err, logger.ErrorKind)
    			return nil, errAuthentication
    		}
    		claims.MapClaims[sessionPolicyNameExtracted] = string(spBytes)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  4. misc/go_android_exec/main.go

    	deviceGopath := deviceGotmp + "/gopath"
    	defer adb("exec-out", "rm", "-rf", deviceGotmp) // Clean up.
    
    	// Determine the package by examining the current working
    	// directory, which will look something like
    	// "$GOROOT/src/mime/multipart" or "$GOPATH/src/golang.org/x/mobile".
    	// We extract everything after the $GOROOT or $GOPATH to run on the
    	// same relative directory on the target device.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/parse.go

    	haveConstant := false
    	switch tok.ScanToken {
    	case scanner.Int, scanner.Float, scanner.String, scanner.Char, '+', '-', '~':
    		haveConstant = true
    	case '(':
    		// Could be parenthesized expression or (R). Must be something, though.
    		tok := p.next()
    		if tok.ScanToken == scanner.EOF {
    			p.errorf("missing right parenthesis")
    			return
    		}
    		rname := tok.String()
    		p.back()
    		haveConstant = !p.atStartOfRegister(rname)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/informers.go

    			//
    			// If PodIPs exists, it is preferred, otherwise fallback to PodIP.
    			//
    			// If we get to this point and have a pod that really and truly has no IP in either of those,
    			// it's not routable at this point and something is wrong/we should discard this event.
    			podIPs := util.GetPodIPsIfPresent(pod)
    			if len(podIPs) == 0 {
    				log.Warnf("pod %s does not appear to have any assigned IPs, not capturing", pod.Name)
    				return nil
    			}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe.go

    	ss := re.FindStringSubmatch(path)
    	if ss == nil {
    		return "", "", fmt.Errorf("not a VS path: %s", path)
    	}
    	return ss[3], ss[2], nil
    }
    
    // getIstioVirtualServicePathForSvcFromRoute returns something like "/apis/networking/v1alpha3/namespaces/default/virtual-service/reviews"
    func getIstioVirtualServicePathForSvcFromRoute(cd *configdump.Wrapper, svc corev1.Service, port int32) (string, error) {
    	sPort := strconv.Itoa(int(port))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  8. cni/pkg/install/install.go

    		return nil
    	}
    
    	// If a file we are watching has a change event, yield and let caller check validity
    	select {
    	case <-watcher.Events:
    		// Something changed, and we must yield
    		return nil
    	case err := <-watcher.Errors:
    		// We had a watch error - that's no good
    		return err
    	case <-ctx.Done():
    		return ctx.Err()
    	default:
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. tests/preload_test.go

    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	var result struct {
    		Something string
    		User
    	}
    
    	DB.Model(User{}).Preload("Account", clause.Eq{Column: "number", Value: user.Account.Number}).Select(
    		"users.*, 'yo' as something").First(&result, "name = ?", user.Name)
    
    	CheckUser(t, user, result.User)
    }
    
    func TestNestedPreloadWithUnscoped(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  10. cni/pkg/repair/repaircontroller.go

    	// We don't want to constantly try to apply the iptables rules, which is unneeded and will fail.
    	// Instead, we track which UIDs we repaired and skip them if already repaired.
    	//
    	// An alternative would be to write something to the Pod (status, annotation, etc).
    	// However, this requires elevated privileges we want to avoid
    	if uid, f := c.repairedPods[key]; f {
    		if uid == pod.UID {
    			log.Debugf("Skipping pod, already repaired")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top