Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for external (0.16 sec)

  1. src/cmd/api/api_test.go

    		pkg  string
    		want bool
    	}{
    		{"net/http", true},
    		{"net/http/internal-foo", true},
    		{"net/http/internal", false},
    		{"net/http/internal/bar", false},
    		{"internal/foo", false},
    		{"internal", false},
    	}
    	for _, tt := range tests {
    		got := !internalPkg.MatchString(tt.pkg)
    		if got != tt.want {
    			t.Errorf("%s is internal = %v; want %v", tt.pkg, got, tt.want)
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top