Description returns the usage documentation for the variable, if set. Good usage instructions provide information about the valid formats, ranges, sizes for the variable type.
()
| 971 | // |
| 972 | // Good usage instructions provide information about the valid formats, ranges, sizes for the variable type. |
| 973 | func (v *VariableDecl) Description() string { |
| 974 | if v == nil { |
| 975 | return "" |
| 976 | } |
| 977 | return v.doc |
| 978 | } |
| 979 | |
| 980 | // Type returns the types.Type value associated with the variable. |
| 981 | func (v *VariableDecl) Type() *types.Type { |
no outgoing calls