Documentation
¶
Index ¶
- Constants
- Variables
- func CheckFileExistsPrompt(ctx context.Context, name string, autoYes bool) error
- func DetectURLType(rawURL string) string
- func DoHTTPRequest(req *http.Request, insecure bool) (*http.Response, error)
- func MatchFilters(s string, filters []string) bool
- func Pointer[T valueTypes](i T) *T
- func Print(a any) string
- func PrintNoIndent(a any) string
- func Scanf(ctx context.Context, format string, a ...any) (int, error)
- func SetupLogrus()
- func SignTypeD(path, token string, timestamp int64) string
- func UTCTimestamp() int64
- func Value[T valueTypes](p *T) T
Constants ¶
View Source
const ( // Sleep interval to avoid rate-limit. DefaultInterval = time.Millisecond * 300 )
Variables ¶
View Source
var ( Version = "0.1.0" Commit = "HEAD" )
Functions ¶
func CheckFileExistsPrompt ¶
func DetectURLType ¶
func MatchFilters ¶
func PrintNoIndent ¶
func SetupLogrus ¶
func SetupLogrus()
func UTCTimestamp ¶
func UTCTimestamp() int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.