Documentation
¶
Index ¶
- func AddRegistrar(f func(*dig.Container))
- func BytesToString(b []byte) string
- func ConcatString(s ...string) string
- func ConcatStringBySlash(s ...string) string
- func DetermineMimeType(fileName string) string
- func InvokeDI(c *dig.Container, function any, opts ...dig.InvokeOption)
- func IsEmpty(s string) bool
- func Register(di *dig.Container)
- func RegisterDI(c *dig.Container, constructor any, opts ...dig.ProvideOption)
- func StringToBytes(s string) []byte
- func StringToInt(str string) (int, error)
- func StringToInt64(str string) (int64, error)
- func StringToUint64(str string) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRegistrar ¶
func ConcatString ¶
ConcatString 连接字符串 NOTE: 性能比fmt.Sprintf和+号要好
func ConcatStringBySlash ¶
ConcatStringBySlash concat string by slash
func DetermineMimeType ¶
DetermineMimeType determines the MIME type based on the file extension
func RegisterDI ¶
func RegisterDI(c *dig.Container, constructor any, opts ...dig.ProvideOption)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.