package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Oct 23, 2022
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetFieldByFieldTag(jsonTagKey, jsonTagValue string, s interface{}) (string, interface{})
type Base struct {
ID string `gorm:"primaryKey" json:"id"`
CreatedAt time.Time `json:"-"`
UpdatedAt time.Time `json:"-"`
DeletedAt *time.Time `gorm:"index" json:"-"`
}
type Product struct {
Base
Name string `gorm:"unique" json:"name"`
BusinessLine string `json:"business_line"`
ProductLine string `json:"product_line"`
GUID string `gorm:"column:guid" json:"guid"`
DisplayName string `json:"display_name"`
Cloud string `json:"cloud"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.