{"action":"created","issue":{"url":"https://api.github.com/repos/kataras/iris/issues/337","repository_url":"https://api.github.com/repos/kataras/iris","labels_url":"https://api.github.com/repos/kataras/iris/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/kataras/iris/issues/337/comments","events_url":"https://api.github.com/repos/kataras/iris/issues/337/events","html_url":"https://github.com/kataras/iris/issues/337","id":169298342,"number":337,"title":"No needed httptest flags ?","user":{"login":"douglarek","id":1488134,"avatar_url":"https://avatars.githubusercontent.com/u/1488134?v=3","gravatar_id":"","url":"https://api.github.com/users/douglarek","html_url":"https://github.com/douglarek","followers_url":"https://api.github.com/users/douglarek/followers","following_url":"https://api.github.com/users/douglarek/following{/other_user}","gists_url":"https://api.github.com/users/douglarek/gists{/gist_id}","starred_url":"https://api.github.com/users/douglarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglarek/subscriptions","organizations_url":"https://api.github.com/users/douglarek/orgs","repos_url":"https://api.github.com/users/douglarek/repos","events_url":"https://api.github.com/users/douglarek/events{/privacy}","received_events_url":"https://api.github.com/users/douglarek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kataras/iris/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-04T06:09:11Z","updated_at":"2016-08-05T05:31:05Z","closed_at":"2016-08-04T08:01:00Z","body":"*main.go*:\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"flag\"\r\n\r\n\t\"github.com/kataras/iris\"\r\n)\r\n\r\nfunc init() {\r\n\tflag.Parse()\r\n}\r\n\r\nfunc main() {\r\n\tiris.Get(\"/hi\", func(ctx *iris.Context) {\r\n\t\tctx.Write(\"Hi %s\", \"iris\")\r\n\t})\r\n\tiris.Listen(\":8080\")\r\n}\r\n```\r\n\r\n*./main --help*:\r\n```\r\nUsage of hello:\r\n  -httptest.serve string\r\n    \tif non-empty, httptest.NewServer serves on this address and blocks\r\n  -test.bench string\r\n    \tregular expression to select benchmarks to run\r\n  -test.benchmem\r\n    \tprint memory allocations for benchmarks\r\n  -test.benchtime duration\r\n    \tapproximate run time for each benchmark (default 1s)\r\n  -test.blockprofile string\r\n    \twrite a goroutine blocking profile to the named file after execution\r\n  -test.blockprofilerate int\r\n    \tif >= 0, calls runtime.SetBlockProfileRate() (default 1)\r\n  -test.count n\r\n    \trun tests and benchmarks n times (default 1)\r\n  -test.coverprofile string\r\n    \twrite a coverage profile to the named file after execution\r\n  -test.cpu string\r\n    \tcomma-separated list of number of CPUs to use for each test\r\n  -test.cpuprofile string\r\n    \twrite a cpu profile to the named file during execution\r\n  -test.memprofile string\r\n    \twrite a memory profile to the named file after execution\r\n  -test.memprofilerate int\r\n    \tif >=0, sets runtime.MemProfileRate\r\n  -test.outputdir string\r\n    \tdirectory in which to write profiles\r\n  -test.parallel int\r\n    \tmaximum test parallelism (default 8)\r\n  -test.run string\r\n    \tregular expression to select tests and examples to run\r\n  -test.short\r\n    \trun smaller test suite to save time\r\n  -test.timeout duration\r\n    \tif positive, sets an aggregate time limit for all tests\r\n  -test.trace string\r\n    \twrite an execution trace to the named file after execution\r\n  -test.v\r\n    \tverbose: print additional output\r\n```\r\n\r\nThis is not happend in commit 12d24f715dcfb93ce390e28753885cd2e3a22e1b, but master;\r\n\r\nIt is confused when defines custom flags."},"comment":{"url":"https://api.github.com/repos/kataras/iris/issues/comments/237758951","html_url":"https://github.com/kataras/iris/issues/337#issuecomment-237758951","issue_url":"https://api.github.com/repos/kataras/iris/issues/337","id":237758951,"user":{"login":"kataras","id":2321588,"avatar_url":"https://avatars.githubusercontent.com/u/2321588?v=3","gravatar_id":"","url":"https://api.github.com/users/kataras","html_url":"https://github.com/kataras","followers_url":"https://api.github.com/users/kataras/followers","following_url":"https://api.github.com/users/kataras/following{/other_user}","gists_url":"https://api.github.com/users/kataras/gists{/gist_id}","starred_url":"https://api.github.com/users/kataras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kataras/subscriptions","organizations_url":"https://api.github.com/users/kataras/orgs","repos_url":"https://api.github.com/users/kataras/repos","events_url":"https://api.github.com/users/kataras/events{/privacy}","received_events_url":"https://api.github.com/users/kataras/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T05:31:05Z","updated_at":"2016-08-05T05:31:05Z","body":"It hasn't those flags, I don't know why you see them, you're the first who reported something like that, I just tested on my machine and I didn't get this output.\r\n\r\nTry these:\r\n- Go to your $GOPATH/src/github.com/kataras/iris, edit the file `http.go` and remove the `\"net/http/pprof\"` [*](https://github.com/kataras/iris/blob/master/http.go#L8) and remove all code references to this ( will not break the iris, don't worry) and try again. \r\n- Otherwise you have to try to make a clean install of your [Golang](https://golang.org)\r\n\r\nAnyway this output is not a problem, so don't worry, you can still use Iris as we do.\r\n"}}
{"actor":{"display_login":"kataras"}}