Socket
Book a DemoInstallSign in
Socket

github.com/brayden-ooi/goo

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/brayden-ooi/goo

v0.0.0-20240406173321-0b3945431a9d
Source
Go
Version published
Created
Source

Goo

Goo is a CLI tool dedicated to scaffold a Go project of which the structure follows the community recommended standards (here). Refer below for the usage guide.

How to use

Flavours of projects

  • There are currently two variants of projects that can be scaffolded by Goo:
    • sm project dedicated for very simple use cases (eg. scripts, playground etc)
    • lg project dedicated for more complex use cases and is more in line with the community recommended standards
  • The projects are generated according to the respective templates stored with the repository. Refer to the assets directory to find the respective templates
  • Both templates come with Git initialized

CLI usage

  • Install this repository using the following line into your terminal

go install github.com/brayden-ooi/goo@latest

  • You can now use the CLI tool to scaffold projects
  • Use goo now along with the following flags to scaffold projects
  • name (n): name of the project (required for sm)
  • init (i): the url to be used for go mod init (if init is passed in, size will be implicitly set to lg, otherwise sm)
  • tmp (t): custom path to store project templates (optional)
  • Example for an sm project: goo now --name=foo
  • Example for an lg project: goo now --init=github.com/foo/foo
  • This CLI tool is not supported for Windows

Customizing the templates

  • You can pass in a custom directory into the CLI using the tmp flag, provided it has both template-sm and template-lg subdirectories
  • You can fork this repository and customize the assets directory to your liking

FAQs

Package last updated on 06 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.