Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleGreet_world (0.12 sec)

  1. src/go/doc/example_test.go

    func Greet(who string) {
    	fmt.Printf("Hello, %s!\n", who)
    }
    `
    	const test = `
    package p_test
    
    // This comment is associated with the ExampleGreet_world example.
    func ExampleGreet_world() {
    	Greet("world")
    }
    `
    
    	// Create the AST by parsing src and test.
    	fset := token.NewFileSet()
    	files := []*ast.File{
    		mustParse(fset, "src.go", src),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top