Documentation
¶
Index ¶
- func InitializeSchema(dbPath string) error
- type Manager
- func (m *Manager) CreateSnippet(title, description, tags, code string, language string) error
- func (m *Manager) GetAllSnippets() ([]database.Snippet, error)
- func (m *Manager) GetSnippetByID(id int) (database.Snippet, error)
- func (m *Manager) SearchSnippets(keyword string) ([]database.Snippet, error)
- func (m *Manager) UpdateSnippet(id int, title, description, tags, code, language string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeSchema ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CreateSnippet ¶
func (*Manager) SearchSnippets ¶
Click to show internal directories.
Click to hide internal directories.