Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeIndent (0.14 sec)

  1. src/go/printer/printer.go

    		p.output = append(p.output, tabwriter.Escape)
    		// p.out must match the //line directive
    		p.out.Filename = pos.Filename
    		p.out.Line = pos.Line
    	}
    }
    
    // writeIndent writes indentation.
    func (p *printer) writeIndent() {
    	// use "hard" htabs - indentation columns
    	// must not be discarded by the tabwriter
    	n := p.Config.Indent + p.indent // include base indentation
    	for i := 0; i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  2. src/encoding/xml/marshal.go

    func (p *printer) writeStart(start *StartElement) error {
    	if start.Name.Local == "" {
    		return fmt.Errorf("xml: start tag with no name")
    	}
    
    	p.tags = append(p.tags, start.Name)
    	p.markPrefix()
    
    	p.writeIndent(1)
    	p.WriteByte('<')
    	p.WriteString(start.Name.Local)
    
    	if start.Name.Space != "" {
    		p.WriteString(` xmlns="`)
    		p.EscapeString(start.Name.Space)
    		p.WriteByte('"')
    	}
    
    	// Attributes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top