SYMBOL INDEX (293 symbols across 94 files) FILE: crawler/config/config.go constant ParseCity (line 5) | ParseCity = "ParseCity" constant ParseCityList (line 6) | ParseCityList = "ParseCityList" constant ParseProfile (line 7) | ParseProfile = "ParseProfile" constant ParseCarDetail (line 9) | ParseCarDetail = "ParseCarDetail" constant ParseCarList (line 10) | ParseCarList = "ParseCarList" constant ParseCarModel (line 11) | ParseCarModel = "ParseCarModel" constant NilParser (line 13) | NilParser = "NilParser" constant ElasticIndex (line 16) | ElasticIndex = "car_profile" constant Qps (line 19) | Qps = 2 FILE: crawler/engine/concurrent.go type ConcurrentEngine (line 3) | type ConcurrentEngine struct method Run (line 23) | func (e *ConcurrentEngine) Run(seeds ...Request) { method createWorker (line 56) | func (e *ConcurrentEngine) createWorker( type Processor (line 10) | type Processor type Scheduler (line 12) | type Scheduler interface type ReadyNotifier (line 19) | type ReadyNotifier interface function isDuplicate (line 75) | func isDuplicate(url string) bool { FILE: crawler/engine/simple.go type SimpleEngine (line 7) | type SimpleEngine struct method Run (line 9) | func (e SimpleEngine) Run(seeds ...Request) { FILE: crawler/engine/types.go type ParserFunc (line 5) | type ParserFunc type Parser (line 8) | type Parser interface type Request (line 13) | type Request struct type ParseResult (line 18) | type ParseResult struct type Item (line 23) | type Item struct type NilParser (line 30) | type NilParser struct method Parse (line 32) | func (NilParser) Parse( method Serialize (line 37) | func (NilParser) Serialize() ( type FuncParser (line 42) | type FuncParser struct method Parse (line 47) | func (f *FuncParser) Parse( method Serialize (line 52) | func (f *FuncParser) Serialize() ( function NewFuncParser (line 57) | func NewFuncParser( FILE: crawler/engine/worker.go function Worker (line 9) | func Worker(r Request) (ParseResult, error) { FILE: crawler/fetcher/fetcher.go function SetVerboseLogging (line 26) | func SetVerboseLogging() { function Fetch (line 30) | func Fetch(url string) ([]byte, error) { function determineEncoding (line 54) | func determineEncoding( FILE: crawler/frontend/controller/searchresult.go type SearchResultHandler (line 18) | type SearchResultHandler struct method ServeHTTP (line 38) | func (h SearchResultHandler) ServeHTTP( method getSearchResult (line 65) | func (h SearchResultHandler) getSearchResult( function CreateSearchResultHandler (line 23) | func CreateSearchResultHandler( constant pageSize (line 63) | pageSize = 10 function rewriteQueryString (line 100) | func rewriteQueryString(q string) string { FILE: crawler/frontend/model/page.go type SearchResult (line 3) | type SearchResult struct FILE: crawler/frontend/starter.go function main (line 9) | func main() { FILE: crawler/frontend/view/searchresult.go type SearchResultView (line 10) | type SearchResultView struct method Render (line 22) | func (s SearchResultView) Render( function CreateSearchResultView (line 14) | func CreateSearchResultView( FILE: crawler/frontend/view/searchresult_test.go function TestSearchResultView_Render (line 12) | func TestSearchResultView_Render(t *testing.T) { FILE: crawler/main.go function main (line 11) | func main() { FILE: crawler/model/car.go type Car (line 3) | type Car struct FILE: crawler/model/profile.go type Profile (line 5) | type Profile struct function FromJsonObj (line 21) | func FromJsonObj(o interface{}) (Profile, error) { FILE: crawler/persist/itemsaver.go function ItemSaver (line 12) | func ItemSaver( function Save (line 43) | func Save( FILE: crawler/persist/itemsaver_test.go function TestSave (line 13) | func TestSave(t *testing.T) { FILE: crawler/scheduler/queued.go type QueuedScheduler (line 5) | type QueuedScheduler struct method WorkerChan (line 10) | func (s *QueuedScheduler) WorkerChan() chan engine.Request { method Submit (line 14) | func (s *QueuedScheduler) Submit(r engine.Request) { method WorkerReady (line 18) | func (s *QueuedScheduler) WorkerReady( method Run (line 23) | func (s *QueuedScheduler) Run() { FILE: crawler/scheduler/simple.go type SimpleScheduler (line 5) | type SimpleScheduler struct method WorkerChan (line 9) | func (s *SimpleScheduler) WorkerChan() chan engine.Request { method WorkerReady (line 13) | func (s *SimpleScheduler) WorkerReady(chan engine.Request) { method Run (line 16) | func (s *SimpleScheduler) Run() { method Submit (line 20) | func (s *SimpleScheduler) Submit( FILE: crawler/xcar/parser/cardetail.go function ParseCarDetail (line 25) | func ParseCarDetail(contents []byte, url string) engine.ParseResult { function extractString (line 62) | func extractString( function extractFloat (line 73) | func extractFloat(contents []byte, re *regexp.Regexp) float64 { FILE: crawler/xcar/parser/cardetail_test.go function TestParseCarDetail (line 11) | func TestParseCarDetail(t *testing.T) { FILE: crawler/xcar/parser/carlist.go constant host (line 10) | host = "http://newcar.xcar.com.cn" function ParseCarList (line 15) | func ParseCarList( FILE: crawler/xcar/parser/carlist_test.go function TestParseCarList (line 8) | func TestParseCarList(t *testing.T) { FILE: crawler/xcar/parser/carmodel.go function ParseCarModel (line 12) | func ParseCarModel( FILE: crawler/xcar/parser/carmodel_test.go function TestParseCarModel (line 8) | func TestParseCarModel(t *testing.T) { FILE: crawler/zhenai/parser/city.go function ParseCity (line 17) | func ParseCity( FILE: crawler/zhenai/parser/citylist.go constant cityListRe (line 10) | cityListRe = `]*>([^... function ParseCityList (line 12) | func ParseCityList( FILE: crawler/zhenai/parser/citylist_test.go function TestParseCityList (line 9) | func TestParseCityList(t *testing.T) { FILE: crawler/zhenai/parser/profile.go function parseProfile (line 41) | func parseProfile( function extractString (line 110) | func extractString( type ProfileParser (line 121) | type ProfileParser struct method Parse (line 125) | func (p *ProfileParser) Parse( method Serialize (line 131) | func (p *ProfileParser) Serialize() ( function NewProfileParser (line 136) | func NewProfileParser( FILE: crawler/zhenai/parser/profile_test.go function TestParseProfile (line 11) | func TestParseProfile(t *testing.T) { FILE: crawler_distributed/config/config.go constant ItemSaverRpc (line 4) | ItemSaverRpc = "ItemSaverService.Save" constant CrawlServiceRpc (line 5) | CrawlServiceRpc = "CrawlService.Process" FILE: crawler_distributed/main.go function main (line 31) | func main() { function createClientPool (line 63) | func createClientPool( FILE: crawler_distributed/persist/client/itemsaver.go function ItemSaver (line 11) | func ItemSaver( FILE: crawler_distributed/persist/rpc.go type ItemSaverService (line 11) | type ItemSaverService struct method Save (line 16) | func (s *ItemSaverService) Save( FILE: crawler_distributed/persist/server/client_test.go function TestItemSaver (line 14) | func TestItemSaver(t *testing.T) { FILE: crawler_distributed/persist/server/itemsaver.go function main (line 17) | func main() { function serveRpc (line 28) | func serveRpc(host, index string) error { FILE: crawler_distributed/rpcsupport/rpc.go function ServeRpc (line 10) | func ServeRpc( function NewClient (line 31) | func NewClient(host string) (*rpc.Client, error) { FILE: crawler_distributed/worker/client/worker.go function CreateProcessor (line 11) | func CreateProcessor( FILE: crawler_distributed/worker/rpc.go type CrawlService (line 5) | type CrawlService struct method Process (line 7) | func (CrawlService) Process( FILE: crawler_distributed/worker/server/client_test.go function TestCrawlService (line 14) | func TestCrawlService(t *testing.T) { FILE: crawler_distributed/worker/server/worker.go function main (line 18) | func main() { FILE: crawler_distributed/worker/types.go type SerializedParser (line 15) | type SerializedParser struct type Request (line 20) | type Request struct type ParseResult (line 25) | type ParseResult struct function SerializeRequest (line 30) | func SerializeRequest(r engine.Request) Request { function SerializeResult (line 41) | func SerializeResult( function DeserializeRequest (line 54) | func DeserializeRequest( function DeserializeResult (line 66) | func DeserializeResult( function deserializeParser (line 85) | func deserializeParser( FILE: lang/basic/atomic/atomic.go type atomicInt (line 9) | type atomicInt struct method increment (line 14) | func (a *atomicInt) increment() { method get (line 24) | func (a *atomicInt) get() int { function main (line 31) | func main() { FILE: lang/basic/basic/basic.go function variableZeroValue (line 15) | func variableZeroValue() { function variableInitialValue (line 21) | func variableInitialValue() { function variableTypeDeduction (line 27) | func variableTypeDeduction() { function variableShorter (line 32) | func variableShorter() { function euler (line 38) | func euler() { function triangle (line 43) | func triangle() { function calcTriangle (line 48) | func calcTriangle(a, b int) int { function consts (line 54) | func consts() { function enums (line 64) | func enums() { function main (line 86) | func main() { FILE: lang/basic/basic/triangle_test.go function TestTriangle (line 5) | func TestTriangle(t *testing.T) { FILE: lang/basic/branch/branch.go function grade (line 8) | func grade(score int) string { function main (line 26) | func main() { FILE: lang/basic/func/func.go function eval (line 10) | func eval(a, b int, op string) (int, error) { function div (line 27) | func div(a, b int) (q, r int) { function apply (line 31) | func apply(op func(int, int) int, a, b int) int { function sum (line 40) | func sum(numbers ...int) int { function swap (line 48) | func swap(a, b int) (int, int) { function main (line 52) | func main() { FILE: lang/basic/loop/loop.go function convertToBin (line 12) | func convertToBin(n int) string { function printFile (line 21) | func printFile(filename string) { function printFileContents (line 30) | func printFileContents(reader io.Reader) { function forever (line 38) | func forever() { function main (line 44) | func main() { FILE: lang/basic/regex/regex.go constant text (line 8) | text = ` function main (line 15) | func main() { FILE: lang/channel/channel.go function worker (line 8) | func worker(id int, c chan int) { function createWorker (line 15) | func createWorker(id int) chan<- int { function chanDemo (line 21) | func chanDemo() { function bufferedChannel (line 38) | func bufferedChannel() { function channelClose (line 48) | func channelClose() { function main (line 59) | func main() { FILE: lang/channel/done/done.go function doWork (line 8) | func doWork(id int, type worker (line 17) | type worker struct function createWorker (line 22) | func createWorker( function chanDemo (line 34) | func chanDemo() { function main (line 53) | func main() { FILE: lang/channel/pattern/main.go function msgGen (line 9) | func msgGen(name string) chan string { function fanIn (line 22) | func fanIn(chs ...chan string) chan string { function fanInBySelect (line 34) | func fanInBySelect(c1, c2 chan string) chan string { function main (line 49) | func main() { FILE: lang/channel/select/select.go function generator (line 9) | func generator() chan int { function worker (line 24) | func worker(id int, c chan int) { function createWorker (line 32) | func createWorker(id int) chan<- int { function main (line 38) | func main() { FILE: lang/container/arrays/arrays.go function printArray (line 5) | func printArray(arr [5]int) { function main (line 12) | func main() { FILE: lang/container/maps/maps.go function main (line 5) | func main() { FILE: lang/container/nonrepeatingsubstr/nonrepeating.go function lengthOfNonRepeatingSubStr (line 7) | func lengthOfNonRepeatingSubStr(s string) int { function main (line 25) | func main() { FILE: lang/container/nonrepeatingsubstr/nonrepeating_test.go function TestSubstr (line 5) | func TestSubstr(t *testing.T) { function BenchmarkSubstr (line 36) | func BenchmarkSubstr(b *testing.B) { FILE: lang/container/slices/sliceops.go function printSlice (line 5) | func printSlice(s []int) { function sliceOps (line 10) | func sliceOps() { FILE: lang/container/slices/slices.go function updateSlice (line 5) | func updateSlice(s []int) { function main (line 9) | func main() { FILE: lang/container/strings/strings.go function main (line 8) | func main() { FILE: lang/errhandling/defer/defer.go function tryDefer (line 12) | func tryDefer() { function writeFile (line 23) | func writeFile(filename string) { function main (line 49) | func main() { FILE: lang/errhandling/filelistingserver/errwrapper_test.go function errPanic (line 14) | func errPanic(_ http.ResponseWriter, type testingUserError (line 19) | type testingUserError method Error (line 21) | func (e testingUserError) Error() string { method Message (line 25) | func (e testingUserError) Message() string { function errUserError (line 29) | func errUserError(_ http.ResponseWriter, function errNotFound (line 34) | func errNotFound(_ http.ResponseWriter, function errNoPermission (line 39) | func errNoPermission(_ http.ResponseWriter, function errUnknown (line 44) | func errUnknown(_ http.ResponseWriter, function noError (line 49) | func noError(writer http.ResponseWriter, function TestErrWrapper (line 68) | func TestErrWrapper(t *testing.T) { function TestErrWrapperInServer (line 82) | func TestErrWrapperInServer(t *testing.T) { function verifyResponse (line 94) | func verifyResponse(resp *http.Response, FILE: lang/errhandling/filelistingserver/filelisting/handler.go constant prefix (line 11) | prefix = "/list/" type userError (line 13) | type userError method Error (line 15) | func (e userError) Error() string { method Message (line 19) | func (e userError) Message() string { function HandleFileList (line 23) | func HandleFileList(writer http.ResponseWriter, FILE: lang/errhandling/filelistingserver/web.go type appHandler (line 12) | type appHandler function errWrapper (line 15) | func errWrapper( type userError (line 61) | type userError interface function main (line 66) | func main() { FILE: lang/errhandling/recover/recover.go function tryRecover (line 7) | func tryRecover() { function main (line 38) | func main() { FILE: lang/functional/adder/adder.go function adder (line 5) | func adder() func(int) int { type iAdder (line 13) | type iAdder function adder2 (line 15) | func adder2(base int) iAdder { function main (line 21) | func main() { FILE: lang/functional/fib/fib.go function Fibonacci (line 4) | func Fibonacci() func() int { FILE: lang/functional/main.go type intGen (line 12) | type intGen method Read (line 14) | func (g intGen) Read( function printFileContents (line 26) | func printFileContents(reader io.Reader) { function main (line 34) | func main() { FILE: lang/goroutine/goroutine.go function main (line 8) | func main() { FILE: lang/http/client.go function main (line 9) | func main() { FILE: lang/http/gindemo/ginserver.go constant keyRequestId (line 10) | keyRequestId = "requestId" function main (line 12) | func main() { FILE: lang/json/main.go type OrderItem (line 8) | type OrderItem struct type Order (line 14) | type Order struct function main (line 20) | func main() { function marshal (line 24) | func marshal() { function unmarshal (line 50) | func unmarshal() { function parseNLP (line 60) | func parseNLP() { FILE: lang/maze/maze.go function readMaze (line 8) | func readMaze(filename string) [][]int { type point (line 28) | type point struct method add (line 35) | func (p point) add(r point) point { method at (line 39) | func (p point) at(grid [][]int) (int, bool) { function walk (line 51) | func walk(maze [][]int, function main (line 96) | func main() { FILE: lang/queue/queue.go type Queue (line 4) | type Queue method Push (line 9) | func (q *Queue) Push(v int) { method Pop (line 14) | func (q *Queue) Pop() int { method IsEmpty (line 21) | func (q *Queue) IsEmpty() bool { FILE: lang/queue/queue_test.go function ExampleQueue_Pop (line 5) | func ExampleQueue_Pop() { FILE: lang/queue/queueentry/main.go function main (line 9) | func main() { FILE: lang/retriever/main.go type Retriever (line 12) | type Retriever interface type Poster (line 16) | type Poster interface constant url (line 21) | url = "http://www.imooc.com" function download (line 23) | func download(r Retriever) string { function post (line 27) | func post(poster Poster) { type RetrieverPoster (line 35) | type RetrieverPoster interface function session (line 40) | func session(s RetrieverPoster) string { function main (line 47) | func main() { function inspect (line 73) | func inspect(r Retriever) { FILE: lang/retriever/mock/mockretriever.go type Retriever (line 5) | type Retriever struct method String (line 9) | func (r *Retriever) String() string { method Post (line 14) | func (r *Retriever) Post(url string, method Get (line 20) | func (r *Retriever) Get(url string) string { FILE: lang/retriever/real/retriever.go type Retriever (line 9) | type Retriever struct method Get (line 14) | func (r *Retriever) Get(url string) string { FILE: lang/rpc/client/main.go function main (line 11) | func main() { FILE: lang/rpc/rpc.go type DemoService (line 5) | type DemoService struct method Div (line 11) | func (DemoService) Div( type Args (line 7) | type Args struct FILE: lang/rpc/server/main.go function main (line 12) | func main() { FILE: lang/tree/node.go type Node (line 5) | type Node struct method Print (line 10) | func (node Node) Print() { method SetValue (line 14) | func (node *Node) SetValue(value int) { function CreateNode (line 23) | func CreateNode(value int) *Node { FILE: lang/tree/traversal.go method Traverse (line 5) | func (node *Node) Traverse() { method TraverseFunc (line 12) | func (node *Node) TraverseFunc(f func(*Node)) { method TraverseWithChannel (line 22) | func (node *Node) TraverseWithChannel() chan *Node { FILE: lang/tree/treeentry/entry.go type myTreeNode (line 9) | type myTreeNode struct method postOrder (line 13) | func (myNode *myTreeNode) postOrder() { function main (line 26) | func main() { FILE: lang/tree/treeentry_embedded/entry.go type myTreeNode (line 9) | type myTreeNode struct method postOrder (line 13) | func (myNode *myTreeNode) postOrder() { function main (line 26) | func main() { FILE: mockserver/generator/city/city.go type Generator (line 21) | type Generator struct method HandleRequest (line 37) | func (g *Generator) HandleRequest(c *gin.Context) { method handleRequest (line 50) | func (g *Generator) handleRequest(c *gin.Context, p params) { method generate (line 62) | func (g *Generator) generate(p params, w io.Writer) error { constant itemCount (line 27) | itemCount = 20 constant pageCount (line 28) | pageCount = 5 type params (line 31) | type params struct function hashCode (line 102) | func hashCode(v interface{}) (int64, error) { type ContentItem (line 117) | type ContentItem struct type PageItem (line 124) | type PageItem struct type Content (line 130) | type Content struct FILE: mockserver/generator/city/city_test.go function TestGenerate (line 13) | func TestGenerate(t *testing.T) { FILE: mockserver/generator/citylist/citylist.go type Generator (line 15) | type Generator struct method HandleRequest (line 20) | func (g *Generator) HandleRequest(c *gin.Context) { method generate (line 32) | func (g *Generator) generate(w io.Writer) error { FILE: mockserver/generator/citylist/citylist_test.go function TestGenerate (line 12) | func TestGenerate(t *testing.T) { FILE: mockserver/generator/profile/profile.go type Recommendation (line 18) | type Recommendation interface type Generator (line 23) | type Generator struct method HandleRequest (line 29) | func (g *Generator) HandleRequest(c *gin.Context) { method generate (line 68) | func (g *Generator) generate(id int64, w io.Writer) error { method GenerateProfile (line 88) | func (g *Generator) GenerateProfile(id int64) *PhotoProfile { type GuessListItem (line 49) | type GuessListItem struct type PhotoProfile (line 56) | type PhotoProfile struct type Content (line 63) | type Content struct function elementFromSlice (line 248) | func elementFromSlice(r *rand.Rand, s []string) string { FILE: mockserver/generator/profile/profile_test.go function TestGenerate (line 17) | func TestGenerate(t *testing.T) { FILE: mockserver/main.go constant templateSuggestion (line 18) | templateSuggestion = "Please make sure working directory is the root of ... function main (line 20) | func main() { FILE: mockserver/recommendation/rcmd.go constant step (line 10) | step = 5 constant offset (line 11) | offset = -10 constant maxGuess (line 12) | maxGuess = 7 type Client (line 16) | type Client struct method NextGuess (line 19) | func (Client) NextGuess(id int64) []int64 { FILE: mockserver/recommendation/rcmd_test.go function TestNextGuess (line 11) | func TestNextGuess(t *testing.T) {