Documentation ¶
Index ¶
- Constants
- Variables
- func GeResourceNameFromFilePath(file string) string
- func SPrintDate(t time.Time) string
- func SPrintDateTime(t time.Time) string
- func SPrintInitialDividendStatus(dst dividend.Status) string
- func SPrintPercentage(value float64, precision int) string
- func SPrintTruncate(str string, num int) string
- func SPrintValue(value mm.Value, precision int) string
- type CsvReader
- type CsvWriter
- type GroupBy
- type OrderBy
- type Reader
- type Resource
- type ResourceStorage
- type SortBy
- type Sorting
- type Writer
Constants ¶
View Source
const ( OrderDescending OrderBy = "desc" OrderAscending OrderBy = "asc" SortByStock SortBy = "stock" SortInvested SortBy = "invested" )
Variables ¶
View Source
var ErrFileOpen = errors.New("File already opened")
Functions ¶
func SPrintDate ¶
func SPrintDateTime ¶
func SPrintPercentage ¶
func SPrintTruncate ¶
func SPrintValue ¶
Types ¶
type CsvReader ¶
type CsvReader struct {
// contains filtered or unexported fields
}
func NewCsvReader ¶
func (*CsvReader) ReadAllLines ¶
type CsvWriter ¶
type CsvWriter struct {
// contains filtered or unexported fields
}
func NewCsvWriter ¶
func (*CsvWriter) WriteAllLines ¶
type Resource ¶
type Resource struct { ID uuid.UUID `db:"id"` Resource string `db:"resource"` FileName string `db:"file_name"` CreatedAt time.Time `db:"created_at"` }
func NewResource ¶
type ResourceStorage ¶
Click to show internal directories.
Click to hide internal directories.