Documentation ¶
Index ¶
- Constants
- type T
- func (t T) AsString() string
- func (t T) Bytes() []byte
- func (t T) Format(f fmt.State, c rune)
- func (t *T) FromHexString(s string) (err error)
- func (t T) HexString() string
- func (t *T) IsZero() bool
- func (t T) MarshalText() (text []byte, err error)
- func (t T) String() string
- func (t *T) UnmarshalText(b []byte) error
Constants ¶
View Source
const Size = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
20-byte SHA1 hash used for info and pieces.
func FromHexString ¶
func HashBytesV2 ¶ added in v1.55.0
func (*T) FromHexString ¶
func (T) MarshalText ¶
func (*T) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.