use fmt for format
This commit is contained in:
		@@ -148,7 +148,7 @@ func (c *Config) help() {
 | 
			
		||||
			if v.dtype != TypeNone {
 | 
			
		||||
				if v.hasdef {
 | 
			
		||||
					format := fmt.Sprintf("Variable   %%-%ds|   Type %%-%ds|   Default %%s\n", max[0]+5, max[1]+3)
 | 
			
		||||
					fmt.Printf(format, strings.Sprintf(`"%s"`, k), v.dtype, strings.Sprintf(`"%s"`, v.defval))
 | 
			
		||||
					fmt.Printf(format, fmt.Sprintf(`"%s"`, k), v.dtype, fmt.Sprintf(`"%s"`, v.defval))
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
@@ -159,7 +159,7 @@ func (c *Config) help() {
 | 
			
		||||
			if v.dtype != TypeNone {
 | 
			
		||||
				if !v.hasdef {
 | 
			
		||||
					format := fmt.Sprintf("Variable   %%-%ds|   Type %%-%ds|   Required\n", max[0]+5, max[1]+3)
 | 
			
		||||
					fmt.Printf(format, strings.Sprintf(`"%s"`, k), v.dtype)
 | 
			
		||||
					fmt.Printf(format, fmt.Sprintf(`"%s"`, k), v.dtype)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user