{"action":"created","issue":{"url":"https://api.github.com/repos/qerio/goctp/issues/7","repository_url":"https://api.github.com/repos/qerio/goctp","labels_url":"https://api.github.com/repos/qerio/goctp/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/qerio/goctp/issues/7/comments","events_url":"https://api.github.com/repos/qerio/goctp/issues/7/events","html_url":"https://github.com/qerio/goctp/issues/7","id":362911129,"node_id":"MDU6SXNzdWUzNjI5MTExMjk=","number":7,"title":"ppInstrumentID 只能用静态字符串","user":{"login":"sunnyboy00","id":2460064,"node_id":"MDQ6VXNlcjI0NjAwNjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2460064?v=4","gravatar_id":"","url":"https://api.github.com/users/sunnyboy00","html_url":"https://github.com/sunnyboy00","followers_url":"https://api.github.com/users/sunnyboy00/followers","following_url":"https://api.github.com/users/sunnyboy00/following{/other_user}","gists_url":"https://api.github.com/users/sunnyboy00/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnyboy00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnyboy00/subscriptions","organizations_url":"https://api.github.com/users/sunnyboy00/orgs","repos_url":"https://api.github.com/users/sunnyboy00/repos","events_url":"https://api.github.com/users/sunnyboy00/events{/privacy}","received_events_url":"https://api.github.com/users/sunnyboy00/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-23T03:52:16Z","updated_at":"2018-12-12T05:16:26Z","closed_at":null,"author_association":"NONE","body":"                 var code string\r\n\t\tfmt.Println(\"输入行情监控合约代码\")\r\n\t\tfmt.Scanln(&code)\r\n\t\tcode = strings.ToLower(code)\r\n\r\n\t\t//ppInstrumentID := []string{code}\r\n\r\n\t\tppInstrumentID := []string{\"rb1901\"}\r\n\r\n\t\tlog.Println(\" ppInstrumentID\", ppInstrumentID)\r\n\t\tp.SubscribeMarketData(ppInstrumentID)\r\n\r\n如果采用注释的//ppInstrumentID := []string{code}，通不过，怎么才能绕开这个坑"},"comment":{"url":"https://api.github.com/repos/qerio/goctp/issues/comments/446465000","html_url":"https://github.com/qerio/goctp/issues/7#issuecomment-446465000","issue_url":"https://api.github.com/repos/qerio/goctp/issues/7","id":446465000,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQ2NTAwMA==","user":{"login":"a631069724","id":6357088,"node_id":"MDQ6VXNlcjYzNTcwODg=","avatar_url":"https://avatars1.githubusercontent.com/u/6357088?v=4","gravatar_id":"","url":"https://api.github.com/users/a631069724","html_url":"https://github.com/a631069724","followers_url":"https://api.github.com/users/a631069724/followers","following_url":"https://api.github.com/users/a631069724/following{/other_user}","gists_url":"https://api.github.com/users/a631069724/gists{/gist_id}","starred_url":"https://api.github.com/users/a631069724/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a631069724/subscriptions","organizations_url":"https://api.github.com/users/a631069724/orgs","repos_url":"https://api.github.com/users/a631069724/repos","events_url":"https://api.github.com/users/a631069724/events{/privacy}","received_events_url":"https://api.github.com/users/a631069724/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T05:16:26Z","updated_at":"2018-12-12T05:16:26Z","author_association":"NONE","body":"@sunnyboy00 @hankchan 这个问题主要是因为golang的内存是自己管理的ppInstrumentID := []string{code}这里并不清楚ppInstrumentID 里面存放的是什么，\r\n可以这样写试试\r\nvar ppInstrumentID string[]\r\ncopy(ppInstrumentID,code)\r\n"}}
{"actor":{"display_login":"a631069724"}}