Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readGoInfo (0.26 sec)

  1. src/go/build/read_test.go

    package build
    
    import (
    	"fmt"
    	"go/token"
    	"io"
    	"strings"
    	"testing"
    )
    
    const quote = "`"
    
    type readTest struct {
    	// Test input contains ℙ where readGoInfo should stop.
    	in  string
    	err string
    }
    
    var readGoInfoTests = []readTest{
    	{
    		`package p`,
    		"",
    	},
    	{
    		`package p; import "x"`,
    		"",
    	},
    	{
    		`package p; import . "x"`,
    		"",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 6K bytes
    - Viewed (0)
Back to top