Documentation ¶
Index ¶
- func BasicRuntimeInfo() map[string]string
- func DiffJSON(old, new []byte) (diff []byte)
- func DiffMap(old, new []map[string]string) (diff []map[string]string)
- func FileNameAndExtension(basefilename string) (filename string, ext string)
- func JSONFile(file os.FileInfo) (fileName string, ok bool)
- func LogJSONDecode(err error, data interface{})
- func LogJSONEncode(err error, obj interface{})
- func ProjectRootPath() string
- func PublicPath() string
- func SplitTextByLineBreak(text string, limit int) (texts []string)
- func StoragePath() string
- type StringSlice
- func (ss *StringSlice) AppendNonRepeat(objectStrs []string, caseSensitive bool)
- func (ss *StringSlice) AppendNonRepeatElement(str string, caseSensitive bool)
- func (ss *StringSlice) Clean()
- func (ss *StringSlice) Delete(sDels []string, caseSensitive bool)
- func (ss *StringSlice) DeleteElement(s string, caseSensitive bool)
- func (ss StringSlice) Index(value string, caseSensitive bool) int
- func (ss *StringSlice) RemoveStringsSpace()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicRuntimeInfo ¶
func FileNameAndExtension ¶
func LogJSONDecode ¶
func LogJSONDecode(err error, data interface{})
func LogJSONEncode ¶
func LogJSONEncode(err error, obj interface{})
func ProjectRootPath ¶
func ProjectRootPath() string
func PublicPath ¶
func PublicPath() string
func SplitTextByLineBreak ¶
func StoragePath ¶
func StoragePath() string
Types ¶
type StringSlice ¶
type StringSlice []string
StringSlice is a type []string
func (*StringSlice) AppendNonRepeat ¶
func (ss *StringSlice) AppendNonRepeat(objectStrs []string, caseSensitive bool)
func (*StringSlice) AppendNonRepeatElement ¶
func (ss *StringSlice) AppendNonRepeatElement(str string, caseSensitive bool)
func (*StringSlice) Delete ¶
func (ss *StringSlice) Delete(sDels []string, caseSensitive bool)
func (*StringSlice) DeleteElement ¶
func (ss *StringSlice) DeleteElement(s string, caseSensitive bool)
func (*StringSlice) RemoveStringsSpace ¶
func (ss *StringSlice) RemoveStringsSpace()
Click to show internal directories.
Click to hide internal directories.