comment

package
v0.0.0-...-16d7727 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommentExtension

func NewCommentExtension() entc.Extension

Types

type Comments

type Comments []string

Comments implements entc.Annotation.

func NewComment

func NewComment(comment ...string) Comments

func (Comments) Name

func (Comments) Name() string

Name of the annotation. Used by the codegen templates.

type Extension

type Extension struct {
	entc.DefaultExtension
}

Extension Generate Getter ent Extension.

func (Extension) Templates

func (Extension) Templates() []*gen.Template

Templates of the extensions.

Jump to

Keyboard shortcuts

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