utils

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package utils provides extra utility for the program

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCmd

func ExecuteCmd(name string, args []string, dir string) error

ExecuteCmd provides a shorthand way to run a shell command

func GoFmt

func GoFmt(appDir string) error

GoFmt runs "gofmt" in a selected directory using the simplify and overwrite flags

func GoGetPackage

func GoGetPackage(appDir string, packages []string) error

GoGetPackage runs "go get" for a given package in the selected directory

func InitGoMod

func InitGoMod(projectName string, appDir string) error

InitGoMod initializes go.mod with the given project name in the selected directory

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL