Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for playExample (0.08 sec)

  1. src/go/doc/example.go

    		return true
    	}
    	rune, _ := utf8.DecodeRuneInString(name[len(prefix):])
    	return !unicode.IsLower(rune)
    }
    
    // playExample synthesizes a new *ast.File based on the provided
    // file with the provided function body as the body of main.
    func playExample(file *ast.File, f *ast.FuncDecl) *ast.File {
    	body := f.Body
    
    	if !strings.HasSuffix(file.Name.Name, "_test") {
    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