Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for nines (0.17 sec)

  1. src/bufio/scan_test.go

    	const text = "abcdefghijklmn\nopqrstuvwxyz"
    	lines := []string{
    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    	}
    	testNoNewline(text, lines, t)
    }
    
    // Test that the line splitter handles a final line with a carriage return but no newline.
    func TestScanLineReturnButNoNewline(t *testing.T) {
    	const text = "abcdefghijklmn\nopqrstuvwxyz\r"
    	lines := []string{
    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin_dryrun_test.go

    	for _, table := range parts {
    		// If table is not empty, get table name from the first line
    		lines := strings.Split(strings.Trim(table, "\n"), "\n")
    		if len(lines) >= 1 && strings.HasPrefix(lines[0], "* ") {
    			tableName := lines[0][2:]
    			lines = append(lines, "COMMIT")
    			tables[tableName] = strings.Join(lines, "\n")
    		}
    	}
    	return tables
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/cmd/addr2line/main.go

    //
    // Usage:
    //
    //	go tool addr2line binary
    //
    // Addr2line reads hexadecimal addresses, one per line and with optional 0x prefix,
    // from standard input. For each input address, addr2line prints two output lines,
    // first the name of the function containing the address and second the file:line
    // of the source code corresponding to that address.
    //
    // This tool is intended for use only by pprof; its interface may change or
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/api/main_test.go

    	// final release step of cat next/*.txt >go1.X.txt.
    	// If the files don't end in full lines, the concatenation goes awry.
    	if strings.Contains(s, "\r") {
    		log.Printf("%s: contains CRLFs", filename)
    		exitCode = 1
    	}
    	if filepath.Base(filename) == "go1.4.txt" {
    		// No use for blank lines in api files, except go1.4.txt
    		// used them in a reasonable way and we should let it be.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue1435.go

    			// equivalent to the "process is gone":
    			//    os.IsNotExist(err),
    			//    "... : no such process",
    			//    "... : bad file descriptor.
    			continue
    		}
    		lines := strings.Split(string(d), "\n")
    		for _, line := range lines {
    			// Different kernel vintages pad differently.
    			line = strings.TrimSpace(line)
    			if strings.HasPrefix(line, "Pid:\t") {
    				// On loaded systems, it is possible
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  6. internal/config/config.go

    type Config map[string]map[string]KVS
    
    // DelFrom - deletes all keys in the input reader.
    func (c Config) DelFrom(r io.Reader) error {
    	scanner := bufio.NewScanner(r)
    	for scanner.Scan() {
    		// Skip any empty lines, or comment like characters
    		text := scanner.Text()
    		if text == "" || strings.HasPrefix(text, KvComment) {
    			continue
    		}
    		if err := c.DelKVS(text); err != nil {
    			return err
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  7. 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
    		case "BuildVersion":
    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)
  8. src/cmd/cgo/gcc.go

    	// behavior too closely to specific versions of the compilers.
    	// Instead, arrange that we can infer what we need from only the presence or absence
    	// of an error on a specific line.
    	//
    	// For each name, we generate these lines, where xxx is the index in toSniff plus one.
    	//
    	//	#line xxx "not-declared"
    	//	void __cgo_f_xxx_1(void) { __typeof__(name) *__cgo_undefined__1; }
    	//	#line xxx "not-type"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. internal/s3select/json/args.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package json
    
    import (
    	"encoding/xml"
    	"fmt"
    	"strings"
    )
    
    const (
    	document = "document"
    	lines    = "lines"
    
    	defaultRecordDelimiter = "\n"
    )
    
    // ReaderArgs - represents elements inside <InputSerialization><JSON/> in request XML.
    type ReaderArgs struct {
    	ContentType string `xml:"Type"`
    	unmarshaled bool
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  10. internal/s3select/json/preader.go

    				in.input = nil
    				in.err = d.Err()
    				in.dst <- all
    			}
    		}()
    	}
    }
    
    // NewPReader - creates new parallel JSON reader using readCloser.
    // Should only be used for LINES types.
    func NewPReader(readCloser io.ReadCloser, args *ReaderArgs) *PReader {
    	r := &PReader{
    		args:       args,
    		buf:        bufio.NewReaderSize(readCloser, jsonSplitSize*2),
    		readCloser: readCloser,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 6.4K bytes
    - Viewed (0)
Back to top