{"id":13764073,"url":"https://github.com/xta/okrun","last_synced_at":"2025-10-29T13:32:09.949Z","repository":{"id":21350783,"uuid":"24667873","full_name":"xta/okrun","owner":"xta","description":"ok, run your gofile","archived":false,"fork":false,"pushed_at":"2014-10-06T01:15:31.000Z","size":157,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T01:51:13.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xta.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-01T06:18:56.000Z","updated_at":"2022-09-27T09:52:52.000Z","dependencies_parsed_at":"2022-08-21T00:10:59.633Z","dependency_job_id":null,"html_url":"https://github.com/xta/okrun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fokrun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fokrun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fokrun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2Fokrun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xta","download_url":"https://codeload.github.com/xta/okrun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238832353,"owners_count":19538273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T15:01:12.052Z","updated_at":"2025-10-29T13:32:04.605Z","avatar_url":"https://github.com/xta.png","language":"Go","readme":"# OK Run (golang)\n\nok, run your gofile. run your gofile when `go run` would not.\n\n[![GoDoc](https://godoc.org/github.com/xta/okrun?status.svg)](https://godoc.org/github.com/xta/okrun)\n\n### Features\n`okrun` will automatically fix the following error(s):\n\n* *imported and not used* - when your gofile contains an imported package that is not used, `okrun` will comment out the offending import line.\n\n### Setup\n    // get okrun\n    go get github.com/xta/okrun\n\n    // install okrun\n    cd $GOPATH \u0026\u0026 go install github.com/xta/okrun/\n\n### Usage\n    okrun path/to/your/file.go\n\nBy using `okrun`, your `file.go` will attempt to run when `go run` would otherwise refuse.\n\n### Example\n\nWith file *example.go*:\n\n    package main\n\n    import (\n      \"fmt\"\n      \"log\"\n    )\n\n    func main() {\n      fmt.Println(\"hi\")\n    }\n\n`go run` will not run *example.go*:\n\n    go run example.go\n    # command-line-arguments\n    example.go:5: imported and not used: \"log\"\n\n`okrun` will run *example.go*:\n\n    okrun example.go\n    hi\n    \n`okrun` will update your gofile \u0026 properly format it. after running `okrun`, *example.go* is now:\n\n    package main\n\n    import (\n      \"fmt\"\n      //  \"log\"\n    )\n\n    func main() {\n      fmt.Println(\"hi\")\n    }\n\n\n## About\n\nby [Rex Feng](https://twitter.com/rexfeng) 2014\n\n## License\n\nMIT\n","funding_links":[],"categories":["工具库","Utilities","实用工具","工具库`可以提升效率的通用代码库和工具`","實用工具","公用事业公司","Utility"],"sub_categories":["交流","Fail injection","Advanced Console UIs","Utility/Miscellaneous","HTTP Clients","查询语","高級控制台界面","实用程序/Miscellaneous","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxta%2Fokrun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxta%2Fokrun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxta%2Fokrun/lists"}