Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExamplePrint (0.17 sec)

  1. src/go/ast/example_test.go

    	// src.go:3:11:	1.0
    	// src.go:4:5:	X
    	// src.go:4:9:	f
    	// src.go:4:11:	3.14
    	// src.go:4:17:	2
    	// src.go:4:21:	c
    }
    
    // This example shows what an AST looks like when printed for debugging.
    func ExamplePrint() {
    	// src is the input for which we want to print the AST.
    	src := `
    package main
    func main() {
    	println("Hello, World!")
    }
    `
    
    	// Create the AST by parsing src.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top