Documentation ¶
Index ¶
- Variables
- func ConfGet(key string) string
- func ConfInit()
- func ConfTrim(str string, toLower bool) string
- type Assets
- type BreadcrumbItem
- type DB
- func (m *DB) BulkInsert(table string, keys []string, valuesList [][]any) error
- func (m *DB) BulkUpdate(table string, keys []string, keysToUpdate []string, valuesList [][]any) error
- func (m *DB) CloseDB(db *sql.DB)
- func (m *DB) CloseResult(result *sql.Rows)
- func (m *DB) FastCount(q string, args ...any) int
- func (m *DB) GenerateWhere(where []string) string
- func (m *DB) GetData(structData any, tags []string) ([]string, []any, error)
- func (m *DB) GetDataByWhere(structData any, where string, tags []string) ([]string, []any, error)
- func (m *DB) GetIDS(strIDS string) []int
- func (m *DB) Insert(table string, keys []string, values []any) (sql.Result, error)
- func (m *DB) MakeStrIDS(ids []int) string
- func (m *DB) Replace(table string, keys []string, values []any) (sql.Result, error)
- func (m *DB) SelectOneByStruct(table string, dbStruct any, sqlWHERE string, sqlOpt ...any)
- func (m *DB) SetupCH() (*sql.DB, error)
- func (m *DB) SetupDB() (*sql.DB, error)
- type Seo
- func (m *Seo) Breadcrumb(item BreadcrumbItem)
- func (m *Seo) Get(key string) any
- func (m *Seo) Init(currentURL string)
- func (m *Seo) IsBot(Agent string) bool
- func (m *Seo) Set(key string, value any)
- func (m *Seo) SetSocialImage(img string)
- func (m *Seo) SocialTags() template.HTML
- func (m *Seo) Tags() template.HTML
- type Sitemap
- func (s *Sitemap) GenerateIndex(sitemapLinks []string) string
- func (s *Sitemap) GenerateIndexFile(sitemapLinks []string, file string, perm os.FileMode) error
- func (s *Sitemap) GenerateSitemap(pages []SitemapPage) string
- func (s *Sitemap) GenerateSitemapFile(pages []SitemapPage, file string, perm os.FileMode) error
- type SitemapPage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AppPath is the absolute path to the app AppPath string // WorkPath is the absolute path to project root directory WorkPath string )
Functions ¶
Types ¶
type BreadcrumbItem ¶
type DB ¶
type DB struct{}
func (*DB) BulkInsert ¶
func (*DB) BulkUpdate ¶
func (*DB) CloseResult ¶
func (*DB) GenerateWhere ¶
func (*DB) GetDataByWhere ¶
func (*DB) MakeStrIDS ¶
func (*DB) SelectOneByStruct ¶
type Seo ¶
type Seo struct { Breadcrumbs []BreadcrumbItem Data map[string]any CurrentURL string CurrentDomain string SocialImage string }
func (*Seo) Breadcrumb ¶
func (m *Seo) Breadcrumb(item BreadcrumbItem)
func (*Seo) SetSocialImage ¶
func (*Seo) SocialTags ¶
type Sitemap ¶
type Sitemap struct {
Err error
}
func (*Sitemap) GenerateIndex ¶
func (*Sitemap) GenerateIndexFile ¶
func (*Sitemap) GenerateSitemap ¶
func (s *Sitemap) GenerateSitemap(pages []SitemapPage) string
func (*Sitemap) GenerateSitemapFile ¶
Click to show internal directories.
Click to hide internal directories.