Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for Split (0.13 sec)

  1. src/cmd/asm/internal/asm/parse.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package asm implements the parser and instruction generator for the assembler.
    // TODO: Split apart?
    package asm
    
    import (
    	"fmt"
    	"io"
    	"log"
    	"os"
    	"strconv"
    	"strings"
    	"text/scanner"
    	"unicode/utf8"
    
    	"cmd/asm/internal/arch"
    	"cmd/asm/internal/flags"
    	"cmd/asm/internal/lex"
    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)
  2. istioctl/pkg/workload/workload.go

    func createHosts(kubeClient kube.CLIClient, istioNamespace, ingressIP, dir string, revision string) error {
    	// try to infer the ingress IP if the provided one is invalid
    	if agent.ValidateIPAddress(ingressIP) != nil {
    		p := strings.Split(ingressSvc, ".")
    		ingressNs := istioNamespace
    		if len(p) == 2 {
    			ingressSvc = p[0]
    			ingressNs = p[1]
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  3. cmd/storage-rest-server.go

    // MakeVolBulkHandler - create multiple volumes as a bulk operation.
    func (s *storageRESTServer) MakeVolBulkHandler(w http.ResponseWriter, r *http.Request) {
    	if !s.IsValid(w, r) {
    		return
    	}
    	volumes := strings.Split(r.Form.Get(storageRESTVolumes), ",")
    	err := s.getStorage().MakeVolBulk(r.Context(), volumes...)
    	if err != nil {
    		s.writeErrorResponse(w, err)
    	}
    }
    
    // StatVolHandler - stat a volume.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  4. cmd/data-scanner.go

    // transformMetaDir will transform a directory to prefix/file.ext
    func (i *scannerItem) transformMetaDir() {
    	split := strings.Split(i.prefix, SlashSeparator)
    	if len(split) > 1 {
    		i.prefix = pathJoin(split[:len(split)-1]...)
    	} else {
    		i.prefix = ""
    	}
    	// Object name is last element
    	i.objectName = split[len(split)-1]
    }
    
    var (
    	applyActionsLogPrefix        = color.Green("applyActions:")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  5. operator/cmd/mesh/manifest-generate_test.go

    func TestTrailingWhitespace(t *testing.T) {
    	got, err := runManifestGenerate([]string{}, "--set values.gateways.istio-egressgateway.enabled=true", liveCharts, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	lines := strings.Split(got, "\n")
    	for i, l := range lines {
    		if strings.HasSuffix(l, " ") {
    			t.Errorf("Line %v has a trailing space: [%v]. Context: %v", i, l, strings.Join(lines[i-25:i+25], "\n"))
    		}
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  6. cmd/erasure-multipart.go

    	for _, uploadID := range uploadIDs {
    		if populatedUploadIDs.Contains(uploadID) {
    			continue
    		}
    		// If present, use time stored in ID.
    		startTime := time.Now()
    		if split := strings.Split(uploadID, "x"); len(split) == 2 {
    			t, err := strconv.ParseInt(split[1], 10, 64)
    			if err == nil {
    				startTime = time.Unix(0, t)
    			}
    		}
    		uploads = append(uploads, MultipartInfo{
    			Bucket:    bucket,
    			Object:    object,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe_test.go

    			expectedString: "Describe resource and related Istio configuration",
    		},
    		{ // case 2 no pod
    			args:           strings.Split("pod", " "),
    			expectedString: "Error: expecting pod name",
    			wantException:  true, // "istioctl experimental inspect pod" should fail
    		},
    		{ // case 3 unknown pod
    			args:           strings.Split("po not-a-pod", " "),
    			expectedString: "pods \"not-a-pod\" not found",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    	cmd := idevCmd(exec.Command("ideviceinfo"))
    	out, err := cmd.Output()
    	if err != nil {
    		return "", fmt.Errorf("ideviceinfo: %v", err)
    	}
    	var iosVer, buildVer string
    	lines := bytes.Split(out, []byte("\n"))
    	for _, line := range lines {
    		key, val, ok := strings.Cut(string(line), ": ")
    		if !ok {
    			continue
    		}
    		switch key {
    		case "ProductVersion":
    			iosVer = val
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  9. src/archive/tar/writer_test.go

    	"testing/iotest"
    	"time"
    )
    
    func bytediff(a, b []byte) string {
    	const (
    		uniqueA  = "-  "
    		uniqueB  = "+  "
    		identity = "   "
    	)
    	var ss []string
    	sa := strings.Split(strings.TrimSpace(hex.Dump(a)), "\n")
    	sb := strings.Split(strings.TrimSpace(hex.Dump(b)), "\n")
    	for len(sa) > 0 && len(sb) > 0 {
    		if sa[0] == sb[0] {
    			ss = append(ss, identity+sa[0])
    		} else {
    			ss = append(ss, uniqueA+sa[0])
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  10. internal/dsync/drwmutex.go

    	// Quorum is effectively = total clients subtracted with tolerance limit
    	quorum := len(restClnts) - tolerance
    	if !isReadLock {
    		// In situations for write locks, as a special case
    		// to avoid split brains we make sure to acquire
    		// quorum + 1 when tolerance is exactly half of the
    		// total locker clients.
    		if quorum == tolerance {
    			quorum++
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
Back to top