Documentation ¶
Index ¶
- type Utils
- func (u *Utils) Base10Version(hex int) int64
- func (u *Utils) FlattenDoubleSlice(data [][]string) []string
- func (u *Utils) FlattenMap(slice []any) []any
- func (u *Utils) FromJSON(src any) any
- func (u *Utils) GetContext(dur time.Duration) (context.Context, context.CancelFunc)
- func (u *Utils) JsonLineAndCharErr(offset int64, pay []byte) (int, int, error)
- func (u *Utils) LogConfigToFile()
- func (u *Utils) ParseBuildstampVersion(bs string) int
- func (u *Utils) ToAbsolutePath(base, path string) string
- func (u *Utils) ToJSON(src any) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Utils ¶
type Utils struct{}
func (*Utils) Base10Version ¶
Base10Version() returns base10 app version
func (*Utils) FlattenDoubleSlice ¶
FlattenDoubleSlice turns 2d slice into a 1d slice.
func (*Utils) FlattenMap ¶
func (*Utils) GetContext ¶
func (*Utils) JsonLineAndCharErr ¶
func (*Utils) LogConfigToFile ¶
func (u *Utils) LogConfigToFile()
func (*Utils) ParseBuildstampVersion ¶
Parses semantic version string in the following formats:
1.2, 1.2abc, 1.2.3, 1.2.3-abc, v0.12.34-rc5
Unparceable values are replaced with zeros.
func (*Utils) ToAbsolutePath ¶
Convert relative filepath to absolute.
Click to show internal directories.
Click to hide internal directories.