Documentation ¶
Index ¶
- func Add(a int, b int) int
- func Compare(t1 Test, t2 Test) int
- func ComputeAsync(a int, b int, callback func(a int, b int) int) int
- func Divide(a int, b int) float64
- func GetByIndex[T any](arr []T, index int) *T
- func Hello(s string) string
- func Index(arr []any, item any) int
- func Len(arr []int) int
- func Minus(a int64, b int64) int64
- func Multiply(a float32, b float32) float64
- func ReplyTo(c Comment, c2 Comment) bool
- func SetByIndex[T any](arr []T, index int, item T)
- func TestGeneric[...](a T, b R) float64
- func TestInterfaceCallback(a int, callback Callback)
- type Callback
- type CallbackImpl
- type Comment
- type Test
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByIndex ¶ added in v1.1.1
func SetByIndex ¶ added in v1.1.1
func TestGeneric ¶ added in v1.1.0
func TestInterfaceCallback ¶
Types ¶
type CallbackImpl ¶
type CallbackImpl struct { }
func (CallbackImpl) OnFailure ¶
func (test CallbackImpl) OnFailure(err error)
func (CallbackImpl) OnSuccess ¶
func (test CallbackImpl) OnSuccess(data any)
type Comment ¶ added in v1.1.0
func (Comment) GetPublisher ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.