doc: add goland type annotation to examples and doc

This commit is contained in:
Ariel Mashraki
2021-04-09 17:29:13 +03:00
committed by Ariel Mashraki
parent 34aabc0eb1
commit 106dd53d23
9 changed files with 46 additions and 2 deletions

View File

@@ -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. */}}

View File

@@ -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. */}}

View File

@@ -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. */}}