Documentation ¶
Index ¶
- type Methodologies
- func (table *Methodologies) Delete(key string)
- func (table *Methodologies) GetByScene(scene string) []*Methodology
- func (table *Methodologies) List() []*Methodology
- func (table *Methodologies) MGet(keys ...string) []*Methodology
- func (table *Methodologies) Set(key string, m *Methodology)
- func (table *Methodologies) TryGet(key string) *Methodology
- func (table *Methodologies) UpdatedBy(key string, fn delegate.Convert[*Methodology, *Methodology]) error
- type Methodology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Methodologies ¶
type Methodologies struct {
// contains filtered or unexported fields
}
func DefaultContainer ¶
func DefaultContainer() *Methodologies
func NewContainer ¶
func NewContainer() *Methodologies
func (*Methodologies) GetByScene ¶
func (table *Methodologies) GetByScene(scene string) []*Methodology
GetByScene 根据场景获取技巧
func (*Methodologies) List ¶
func (table *Methodologies) List() []*Methodology
List 返回所有的技巧名称和适用场景,操作步骤和例子
func (*Methodologies) MGet ¶
func (table *Methodologies) MGet(keys ...string) []*Methodology
MGet 批量获取技巧信息
func (*Methodologies) Set ¶
func (table *Methodologies) Set(key string, m *Methodology)
Set 更新或新增一个技巧
func (*Methodologies) TryGet ¶
func (table *Methodologies) TryGet(key string) *Methodology
TryGet 查询具体某一个技巧的操作步骤和例子
func (*Methodologies) UpdatedBy ¶
func (table *Methodologies) UpdatedBy( key string, fn delegate.Convert[*Methodology, *Methodology], ) error
UpdatedBy 更新一个技巧
type Methodology ¶
type Methodology struct { // The ID of this methodology, that is, the name. ID string `json:"id"` // The Usage describes what problem this methodology solves, and roughly what situations it is used for. // You should decide whether to use this methodology to solve your problem based on the usage. Usage string `json:"usage"` // MainIdea describes the methodology's main idea and how it works. MainIdea string `json:"main_idea,omitempty"` // Scenario contains Some highly generalized tags that roughly describe the applicable scenarios // or contexts of a methodology. Scenario []string `json:"scenario,omitempty"` // Strategy describes the methodology's thinking strategy. Strategy []string `json:"strategy,omitempty"` // Specific execution Steps listed in order. Steps []string `json:"steps,omitempty"` // 具体的操作步骤 // Examples of response situations and formats. Examples []string `json:"examples,omitempty"` // 举例 }
Methodology - Detailed information of a methodology.
Click to show internal directories.
Click to hide internal directories.