Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for stripOutputComment (0.11 sec)

  1. src/go/doc/example.go

    			newF := *f
    			newF.Name = ast.NewIdent("main")
    			newF.Body, comments = stripOutputComment(f.Body, comments)
    			d = &newF
    		}
    		decls = append(decls, d)
    	}
    
    	// Copy the File, as it may be used elsewhere.
    	f := *file
    	f.Name = ast.NewIdent("main")
    	f.Decls = decls
    	f.Comments = comments
    	return &f
    }
    
    // stripOutputComment finds and removes the "Output:" or "Unordered output:"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top