mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +03:00
doc: add goland type annotation to examples and doc
This commit is contained in:
committed by
Ariel Mashraki
parent
34aabc0eb1
commit
106dd53d23
@@ -1,5 +1,8 @@
|
||||
{{ define "debug" }}
|
||||
|
||||
{{/* The line below tells Intellij/GoLand to enable the autocompletion based *gen.Graph type. */}}
|
||||
{{/* gotype: entgo.io/ent/entc/gen.Graph */}}
|
||||
|
||||
{{/* A template that will be generated to a file named "debug.go" and
|
||||
add the functionality for running each client <T> in debug mode. */}}
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{{/* The line below tells Intellij/GoLand to enable the autocompletion based *gen.Type type. */}}
|
||||
{{/* gotype: entgo.io/ent/entc/gen.Type */}}
|
||||
|
||||
{{/* A template for adding additional static fields to specific types. */}}
|
||||
{{ define "model/fields/additional" }}
|
||||
{{- /* Add static fields to the "Card" entity. */}}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{{/* The line below tells Intellij/GoLand to enable the autocompletion based *gen.Type type. */}}
|
||||
{{/* gotype: entgo.io/ent/entc/gen.Type */}}
|
||||
|
||||
{{ define "model/additional/stringer" }}
|
||||
|
||||
{{/* A template that adds the "GoString" method to all generated models on the same file they are defined. */}}
|
||||
|
||||
Reference in New Issue
Block a user