Documentation
¶
Index ¶
- Variables
- func CheckPasswordHash(password, hash string) bool
- func ConvertHTMLToPDF(outputFile string, data []byte) error
- func DecodeFromBase64(v interface{}, enc string) error
- func EncodeToBase64(v interface{}) (string, error)
- func FormatDocuments(docs any, cols ...string) string
- func HashPassword(password string) (string, error)
- func MustHashPassword(password string) string
- func ParseDate(date string) (time.Time, error)
- func ParseGraphQLData(src *graphql.Result, dst any, key string) error
- func ParseInto(src any, dst any) error
- func ParseProtoAnyInto(src *anypb.Any, dst any) error
- func ParseTime(tim string) (time.Time, error)
- func ProtoAnyToMap(in *anypb.Any) (map[string]interface{}, error)
- func SplitString(input string, sep rune) []string
- func StartOfMonth() time.Time
- func ToProtoAny(in any) (*anypb.Any, error)
- type Options
- type Printer
- type RenderType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ProjectDirectory = filepath.Dir(filepath.Dir(filePath))
)
Functions ¶
func CheckPasswordHash ¶
func ConvertHTMLToPDF ¶
func DecodeFromBase64 ¶
func EncodeToBase64 ¶
func FormatDocuments ¶
func HashPassword ¶
func MustHashPassword ¶
func SplitString ¶
func StartOfMonth ¶
Types ¶
type Printer ¶
type Printer interface { PrintDocument(doc interface{}) string PrintDocuments(docs interface{}) string WithColumns(columns ...string) Printer WithExceptColumns(exceptColumns []string) Printer WithAllColumns() Printer WithStyle(style table.Style) Printer WithStdout(stdout bool) Printer WithRenderType(typ RenderType) Printer ClearColumns() }
func NewPrinter ¶
type RenderType ¶
type RenderType string
const ( RenderTypeDefault RenderType = "default" RenderTypeCSV RenderType = "csv" RenderTypeHTML RenderType = "html" RenderTypeMarkdown RenderType = "markdown" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.