Documentation ¶
Index ¶
- Variables
- func ConvertMapToObject(data map[string]interface{}, obj interface{}) error
- func ConvertStructToMap(i interface{}) (map[string]interface{}, error)
- func GetContentFile(filename string) string
- func GetPercentage(total int, value int) float32
- func InsertNewLine(s string, args ...int) string
- func ParserGetPutCommand(msg string) (objectNum int, objectName string, containNum int, containerName string)
- func ParserObjectNumber(str string) (num int, name string)
- func SplitCommand(inputStr string) (cmd string, para string)
- func ToCyan(str string, num ...int) string
- func UnmarshalJsonFile(filePath string, targetObjectType interface{}) error
- func ValidateStringLengRange(input string, min int, max int) error
- type RestString
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConvertMapToObject ¶
func ConvertStructToMap ¶
func GetContentFile ¶
func GetPercentage ¶
func ParserGetPutCommand ¶
func ParserObjectNumber ¶
func SplitCommand ¶
func UnmarshalJsonFile ¶
Types ¶
type RestString ¶
type RestString string
func (*RestString) Replace ¶
func (s *RestString) Replace(old string, new string) *RestString
func (*RestString) String ¶
func (s *RestString) String() string
Click to show internal directories.
Click to hide internal directories.