Documentation ¶
Index ¶
- func AbsInt32(n int32) int32
- func Base62Increment(s string) string
- func BubbleSort(list []int32) []int32
- func Compress(s string) string
- func DataConvert(from interface{}, dst interface{}) error
- func Decode62To10(str string) int64
- func Encode10To62(num int64) string
- func FloatToStr(f float64) string
- func GetStringEnd(str string) string
- func Int32Sum(int32arr []int32) int32
- func Int32SumParallel(numbers []int32) int32
- func Int32ToStr(n int32) string
- func Int64ToStr(n int64) string
- func IntArrEq(a, b []int) bool
- func IntToStr(n int) string
- func InterfaceToString(val interface{}) (res string)
- func IsNum(s string) bool
- func MD5Encryption(str string) string
- func Max(vals ...int64) int64
- func MaxNum(arr []int64) (max int64, maxIndex int)
- func Min(vals ...int64) int64
- func MinNum(arr []int64) (min int64, minIndex int)
- func ParseStrToArrayInt32(target string, sep string) []int32
- func ParseStrToArrayStr(target string, sep string) []string
- func Percent(value1, value2 int64) string
- func QuickSort(list []int32, left int32, right int32)
- func RecoverPanic()
- func RemoveSliInt(slice []int32, elem int32) []int32
- func RemoveSliStr(slice []string, elem string) []string
- func Removeduplicate(a interface{}) (ret []interface{})
- func RemoveduplicateMap(DataArr []int32) []int32
- func RoundingFour(value float64) float64
- func RoundingSeven(value float64) float64
- func RoundingTwo(value float64) float64
- func SearchSliFlt(slice []float64, elem float64) bool
- func SearchSliInt(slice []int, elem int) bool
- func SearchSliInt32(slice []int32, elem int32) bool
- func SearchSliInt64(slice []int64, elem int64) bool
- func SearchSliStr(slice []string, elem string) bool
- func SliceMaxFloat64(l []float64) (max float64)
- func SliceMinFloat64(l []float64) (min float64)
- func StrToInt(str string) int
- func StrToInt32(str string) (int32, error)
- func StrToInt64(str string) int64
- func TenMinutesTask()
- type Aes
- type Decimal
- type Negative_Number
- type NonNegative_Integer
- type NonNegative_Number
- type Queue
- func (q *Queue) Back() interface{}
- func (q *Queue) Begin() *QueueNode
- func (q *Queue) Clear()
- func (q *Queue) End() *QueueNode
- func (q *Queue) Front() interface{}
- func (q *Queue) Init()
- func (q *Queue) PopFront() interface{}
- func (q *Queue) PushBack(elem interface{})
- func (q *Queue) Range(callback func(v interface{}) bool)
- func (q *Queue) Remove(ele interface{}) bool
- func (q *Queue) SetCapactiy(c uint32) uint32
- func (q *Queue) ShowSelf()
- func (q *Queue) Size() uint32
- type QueueNode
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataConvert ¶ added in v0.0.33
func DataConvert(from interface{}, dst interface{}) error
DataConvert - 資料轉換
func Int32SumParallel ¶
func InterfaceToString ¶ added in v0.0.33
func InterfaceToString(val interface{}) (res string)
InterfaceToString - Interface轉字串
func ParseStrToArrayInt32 ¶ added in v0.0.33
ParseStrToArrayInt32 - ex: 123,555 -> [123,555]
func ParseStrToArrayStr ¶ added in v0.0.33
ParseStrToArrayStr - ex: "嘎抓","打妹" -> ["嘎抓","打妹"]
func RecoverPanic ¶ added in v0.0.3
func RecoverPanic()
func RemoveSliInt ¶
RemoveSliInt - 移除slice中的某個元素(int)
func RemoveSliStr ¶
RemoveSliStr - 移除slice中的某個元素(str)
func Removeduplicate ¶
func Removeduplicate(a interface{}) (ret []interface{})
func SearchSliFlt ¶
SearchSliFlt - 檢查silce中有沒有此元素(float64)
func SearchSliInt ¶
SearchSliInt - 檢查silce中有沒有此元素(int)
func SearchSliInt32 ¶
SearchSliInt32 - 檢查silce中有沒有此元素(int32)
func SearchSliInt64 ¶
SearchSliInt64 - 檢查silce中有沒有此元素(int64)
func SearchSliStr ¶
SearchSliStr - 檢查silce中有沒有此元素(str)
func SliceMaxFloat64 ¶
func SliceMinFloat64 ¶
func StrToInt32 ¶ added in v0.0.33
StrToInt32 - 字串轉 Int32
Types ¶
type Aes ¶ added in v0.0.15
func (*Aes) PKCS7Padding ¶ added in v0.0.15
func (*Aes) PKCS7UnPadding ¶ added in v0.0.15
type Decimal ¶ added in v0.0.34
func (*Decimal) DecimalInt64DivToString ¶ added in v0.0.34
DecimalInt64DivToString 回傳含指定小數位數的浮點數字串 after the decimal point.
Example:
fixed(2) // output: "0.00" fixed(0) // output: "0" fixed(0) // output: "5" fixed(1) // output: "5.4" fixed(2) // output: "5.45" fixed(3) // output: "5.450" fixed(-1) // output: "540"
func (*Decimal) DecimalMulToInt64 ¶ added in v0.0.34
DecimalMulToInt64
func (*Decimal) InterfaceToDecimal ¶ added in v0.0.34
InterfaceToDecimal - Interface轉Decimal
type Negative_Number ¶ added in v0.0.17
type NonNegative_Integer ¶ added in v0.0.17
type NonNegative_Number ¶ added in v0.0.17
type NonNegative_Number interface { ~float32 | ~float64 | ~complex64 | ~complex128 }
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func CreateQueue ¶
func CreateQueue() *Queue
func (*Queue) SetCapactiy ¶
一開始就要設置, 如果已經有了內容, 則只能設置為和當前容量一樣大小
Source Files ¶
Click to show internal directories.
Click to hide internal directories.