Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseRevTime (0.94 sec)

  1. src/cmd/go/internal/vcs/vcs.go

    	uncommitted := len(out) > 0
    
    	return Status{
    		Revision:    rev,
    		CommitTime:  commitTime,
    		Uncommitted: uncommitted,
    	}, nil
    }
    
    // parseRevTime parses commit details in "revision:seconds" format.
    func parseRevTime(out []byte) (string, time.Time, error) {
    	buf := string(bytes.TrimSpace(out))
    
    	i := strings.IndexByte(buf, ':')
    	if i < 1 {
    		return "", time.Time{}, errors.New("unrecognized VCS tool output")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top