tools

package
v0.0.0-...-955a574 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayProgressBar

func DisplayProgressBar(current, total *int)

func FindFilesWithBasePathBySuffixes

func FindFilesWithBasePathBySuffixes(basePath string, suffixes []string) ([]string, error)

特定のパス以下のファイルを検索し、与えられたsuffixesに該当するファイルのパスのみを返す

func GetContentType

func GetContentType(event *nostr.Event) (string, bool, error)

Content-Typeをイベントから取得する。NIP-95の場合は第二引数がtrueになる。

func GetResponseContent

func GetResponseContent(eventContent string, isTextFile bool) ([]byte, error)

func ResolvePubKey

func ResolvePubKey(npubOrHex string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL