generator

package
v0.0.0-...-99e5d07 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EMPTY string = ""

Variables

This section is empty.

Functions

func CaseInsensitiveContains

func CaseInsensitiveContains(s, substr string) bool

CaseInsensitiveContains checks if a string witholds a substring irrespective of case

func CloneTemplate

func CloneTemplate() error

Clone Template clones a template microservice

func GenerateRESTMicroService

func GenerateRESTMicroService(serviceName string, logger *zap.Logger) error

GenerateRESTMicroService creates a microservice with a REST API

func LogAndReturnCmdErrorIfExist

func LogAndReturnCmdErrorIfExist(res error) error

LogAndReturnCmdErrorIfExist logs and returns an error if it exists

func RemoveAllReferencesFromFile

func RemoveAllReferencesFromFile(path string, search string, to string)

RemoveAllReferencesFromFile removes all references of a search string in a file located at a specific location

func RemoveGitRepo

func RemoveGitRepo(serviceName string) error

RemoveGitRepo removes the .git repository

func UpdateMakefile

func UpdateMakefile(serviceName string) error

UpdateMakefile updates the sevices makefile

func WalkAndUpdate

func WalkAndUpdate(serviceName string)

Types

This section is empty.

Directories

Path Synopsis
templates

Jump to

Keyboard shortcuts

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