Documentation ¶
Index ¶
- func Capitalize(str string) string
- func DecimalAdjust(value float64, exp int) float64
- func DownloadCSVFileFromAWS(env *config.AWSConfig, file string) ([][]string, error)
- func FormatMoney(value float64, precision int) string
- func GetFileFromAWS(env *config.AWSConfig, file string) ([]byte, error)
- func GetFilePrefix() string
- func Int32ToString(i int32) string
- func IsValidUserId(userId string) bool
- func ObjectToJsonString(obj interface{}) string
- func ReadCSVFile(filePath string) ([][]string, error)
- func ReadFile(filePath string) ([]byte, error)
- func ReadJsonFile(filePath string, obj interface{}) error
- func Round(value float64, precision int) float64
- func ServeHandlerFunc(handlerFunc http.HandlerFunc, req *http.Request) (*httptest.ResponseRecorder, error)
- func SortByDate(data [][]string, by string) [][]string
- func StringToBool(str string) bool
- func StringToDate(str string) time.Time
- func StringToFloat64(str string) float64
- func StringToInt32(str string) int32
- func StringToInt64(str string) int64
- func StringToTime(str string) time.Time
- func StringToTimeWithFormat(str string, format string) time.Time
- func StringToTimeWithLocation(str string, location *time.Location) time.Time
- func TimeToString(t time.Time) string
- func TimeToStringWithFormat(t time.Time, format string) string
- func TimeToStringWithLocation(t time.Time, location *time.Location) string
- func TimeToTimestamp(t time.Time) *timestamp.Timestamp
- func TimestampToString(ts *timestamp.Timestamp) string
- func TimestampToStringWithFormat(ts *timestamp.Timestamp, format string) string
- func TimestampToStringWithLocation(ts *timestamp.Timestamp, location *time.Location) string
- func TimestampToTime(ts *timestamp.Timestamp) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capitalize ¶
func DecimalAdjust ¶
func DownloadCSVFileFromAWS ¶
func FormatMoney ¶
func GetFilePrefix ¶
func GetFilePrefix() string
func Int32ToString ¶
func IsValidUserId ¶
func ObjectToJsonString ¶
func ObjectToJsonString(obj interface{}) string
func ReadCSVFile ¶
func ReadJsonFile ¶
func ServeHandlerFunc ¶
func ServeHandlerFunc(handlerFunc http.HandlerFunc, req *http.Request) (*httptest.ResponseRecorder, error)
func SortByDate ¶
func StringToBool ¶
func StringToDate ¶
func StringToFloat64 ¶
func StringToInt32 ¶
func StringToInt64 ¶
func StringToTime ¶
func TimeToString ¶
func TimestampToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.