Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Example_retrievePositionInfo (0.24 sec)

  1. src/go/token/example_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package token_test
    
    import (
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"go/token"
    )
    
    func Example_retrievePositionInfo() {
    	fset := token.NewFileSet()
    
    	const src = `package main
    
    import "fmt"
    
    import "go/token"
    
    //line :1:5
    type p = token.Pos
    
    const bad = token.NoPos
    
    //line fake.go:42:11
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:09:31 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top