evoli

package module
v0.0.0-...-89dfdfc Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 17 Imported by: 0

README

evoli

Color palettes: https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html

Getting started

Create a main.go file with following context:

package main

import (
	"github.com/evolidev/evoli"
)

//go:generate go run main.go generate

type MyApp struct {
	*evoli.Application
}

func main() {
	app := &MyApp{}

	app.Start()
}

Next run following command go run main.go init. This command will initialize the project and creates all folders for you.

To get an command overview just run go run main.go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Cli *console.Console
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication() *Application

func (*Application) AddEmbedFS

func (a *Application) AddEmbedFS(fs embed.FS)

func (*Application) AddMigration

func (a *Application) AddMigration(migrate func(db *gorm.DB))

func (*Application) AddRoutes

func (a *Application) AddRoutes(prefix string, routes func(router *router.Router))

func (*Application) Init

func (a *Application) Init()

func (*Application) RegisterComponent

func (a *Application) RegisterComponent(comp component.Component)

func (*Application) Serve

func (a *Application) Serve(command *console.ParsedCommand)

func (*Application) Start

func (a *Application) Start()

func (*Application) Watch

func (a *Application) Watch(command *console.ParsedCommand)

Directories

Path Synopsis
framework
console/filenotify
Package filenotify provides a mechanism for watching file(s) for changes.
Package filenotify provides a mechanism for watching file(s) for changes.
use

Jump to

Keyboard shortcuts

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