{"id":21478114,"url":"https://github.com/ichtrojan/go-package-example","last_synced_at":"2026-05-17T13:04:19.695Z","repository":{"id":91694599,"uuid":"203670288","full_name":"ichtrojan/go-package-example","owner":"ichtrojan","description":"Go Package Example","archived":false,"fork":false,"pushed_at":"2019-11-04T11:48:54.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-02-28T13:23:01.958Z","etag":null,"topics":["docker","example","go","package"],"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/ichtrojan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-21T21:58:32.000Z","updated_at":"2024-06-19T10:14:59.561Z","dependencies_parsed_at":"2023-03-02T01:00:32.876Z","dependency_job_id":null,"html_url":"https://github.com/ichtrojan/go-package-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichtrojan%2Fgo-package-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichtrojan%2Fgo-package-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichtrojan%2Fgo-package-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichtrojan%2Fgo-package-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ichtrojan","download_url":"https://codeload.github.com/ichtrojan/go-package-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997160,"owners_count":20380981,"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":["docker","example","go","package"],"created_at":"2024-11-23T11:16:36.059Z","updated_at":"2026-05-17T13:04:14.662Z","avatar_url":"https://github.com/ichtrojan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Custom Package Example\n\n## Introduction\n\nThis repo demostrates custom packages in go. The `routes/` directory contains a single go file `api.go` under the package name `routes`. In that file, `mux` router is imported; serving a single route to display `Hello World` declared inside of the `Init` method.\n\n\u003e **NOTE**\n\u003e For a package method to be accessed externally, it has to begin with an uppercase\n\nThe `main.go` file under package main, imports our custom package and calls the `Init` method in our `routes` package.\n\n## Usage\n\n### Without Docker\n\n* Clone this repo: `git clone https://github.com/ichtrojan/go-package-example.git`\n* Change directory: `cd go-package-example`\n* Run the application: `go run main.go`\n\nYou will be able to access the application from `localhost:9990`\n\n### With Docker\n\nThis is the good part, just run:\n\n`docker-compose up`\n\nYou will be able to access the application from `localhost:9990`\n\nviola, that all 😀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichtrojan%2Fgo-package-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fichtrojan%2Fgo-package-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichtrojan%2Fgo-package-example/lists"}