Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for statString (0.18 sec)

  1. src/cmd/go/internal/work/exec.go

    			s = "true"
    		}
    		cache.PutBytes(cache.Default(), flagID, []byte(s))
    	}
    
    	b.flagCache[key] = supported
    	return supported
    }
    
    // statString returns a string form of an os.FileInfo, for serializing and comparison.
    func statString(info os.FileInfo) string {
    	return fmt.Sprintf("stat %d %x %v %v\n", info.Size(), uint64(info.Mode()), info.ModTime(), info.IsDir())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/status/ready/probe.go

    	if p.NoEnvoy {
    		return nil
    	}
    	if p.Context == nil {
    		return p.checkEnvoyReadiness()
    	}
    	select {
    	case <-p.Context.Done():
    		return fmt.Errorf("server is not live, current state is: %s", StateString(Draining))
    	default:
    		return p.checkEnvoyReadiness()
    	}
    }
    
    func (p *Probe) checkEnvoyReadiness() error {
    	// If Envoy is ready at least once i.e. server state is LIVE and workers
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 00:35:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/base/tool.go

    		SetExitStatus(2)
    		Exit()
    	}
    	return toolPath
    }
    
    // ToolPath returns the path at which we expect to find the named tool
    // (for example, "vet"), and the error (if any) from statting that path.
    func ToolPath(toolName string) (string, error) {
    	toolPath := filepath.Join(build.ToolDir, toolName) + cfg.ToolExeSuffix()
    	err := toolStatCache.Do(toolPath, func() error {
    		_, err := os.Stat(toolPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:04:09 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/start.go

    		return result
    	}
    
    	counter.Open()
    
    	if _, err := os.Stat(telemetry.Default.LocalDir()); err != nil {
    		// There was a problem statting LocalDir, which is needed for both
    		// crash monitoring and counter uploading. Most likely, there was an
    		// error creating telemetry.LocalDir in the counter.Open call above.
    		// Don't start the child.
    		return result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug.go

    	endState := stateAtPC{slots: make([]VarLoc, len(s.slots)), registers: make([][]SlotID, len(s.registers))}
    	endState.reset(b.endState)
    	return s.stateString(endState)
    }
    
    func (s *debugState) stateString(state stateAtPC) string {
    	var strs []string
    	for slotID, loc := range state.slots {
    		if !loc.absent() {
    			strs = append(strs, fmt.Sprintf("\t%v = %v\n", s.slots[slotID], s.LocString(loc)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssagen/ssa.go

    				} else if b, ok := progToBlock[p]; ok {
    					s = b.String()
    				} else {
    					s = "   " // most value and branch strings are 2-3 characters long
    				}
    				fmt.Fprintf(fi, " %-6s\t%.5d %s\t%s\n", s, p.Pc, ssa.StmtString(p.Pos), p.InstructionString())
    			}
    			fi.Close()
    		}
    	}
    
    	defframe(&s, e, f)
    
    	f.HTMLWriter.Close()
    	f.HTMLWriter = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top