mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 16:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			387 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			387 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package checkpoints
 | 
						|
 | 
						|
type KeyValue struct {
 | 
						|
	Name  string `json:"name"`
 | 
						|
	Value string `json:"value"`
 | 
						|
}
 | 
						|
 | 
						|
type ParamOptions struct {
 | 
						|
	Options []*KeyValue `json:"options"`
 | 
						|
}
 | 
						|
 | 
						|
func NewParamOptions() *ParamOptions {
 | 
						|
	return &ParamOptions{}
 | 
						|
}
 | 
						|
 | 
						|
func (this *ParamOptions) AddParam(name string, value string) {
 | 
						|
	this.Options = append(this.Options, &KeyValue{
 | 
						|
		Name:  name,
 | 
						|
		Value: value,
 | 
						|
	})
 | 
						|
}
 |