annotation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package annotation parse annotation from source code file and recognize follows.

Comment @Handler("name", "pkg.ExampleHandler") to define handler and use @Middleware("name") to use it around Controller handler or route handler.

Index

Constants

View Source
const (
	Description = "Build middleware mapping, controller and controller handler"
	Name        = "gen:annotation"

	OptPath      = "path"
	OptPathDesc  = "Source code path, e.g. ./"
	OptPathShort = 'p'
	OptPathValue = "app/annotations"
)

Variables

This section is empty.

Functions

func New

func New() *console.Command

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func (*Generator) Run

func (o *Generator) Run(_ context.Context, container *console.Container, _ *console.Command) (err error)

Jump to

Keyboard shortcuts

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