practice

package
v0.0.0-...-2627104 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DROP = "但故事的最后你还是说了"

Variables

This section is empty.

Functions

func IndexT

func IndexT[T comparable](s []T, x T) int

func ScaleFunc

func ScaleFunc(v *VertexMethod, string2 string)

func ScaleFuncTest

func ScaleFuncTest(v VertexMethod, string2 string)

func StringAmazing

func StringAmazing(method VertexMethod) bool

Types

type AReader

type AReader struct{}

func (AReader) Read

func (r AReader) Read(p []byte) (int, error)

type Abser

type Abser interface {
	Abs() float64
}

type IPAddr

type IPAddr [4]byte

type List

type List[T any] struct {
	// contains filtered or unexported fields
}

type MyError

type MyError struct {
	When time.Time
	What string
}

func (*MyError) Error

func (e *MyError) Error() string

type SafeCounter

type SafeCounter struct {
	// contains filtered or unexported fields
}

SafeCounter 可以安全同时使用。

func (*SafeCounter) Inc

func (c *SafeCounter) Inc(key string)

Inc 递增给定键的计数器

func (*SafeCounter) Value

func (c *SafeCounter) Value(key string) int

Value 返回给定键的计数器的当前值。

type Vertex

type Vertex struct {
	X int
	Y int
}

type VertexMethod

type VertexMethod struct {
	// contains filtered or unexported fields
}

func (*VertexMethod) NextWord

func (v *VertexMethod) NextWord()

NextWord 指针接收器,相当于直接修改原始副本

func (VertexMethod) NextWordTest

func (v VertexMethod) NextWordTest()

func (VertexMethod) StringAnd

func (v VertexMethod) StringAnd() string

type VertexT

type VertexT struct {
	X, Y float64
}

func (*VertexT) Abs

func (v *VertexT) Abs() float64

type Vertexes

type Vertexes struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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