base

package
v0.0.0-...-0e6eae1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adder

func Adder() func(int) int

func Divide

func Divide(a, b int) (int, error)

func Factorial

func Factorial(n uint64) (result uint64)

func Fibonacci

func Fibonacci() func() int

func HandleMyTag

func HandleMyTag()

func PanicStudy

func PanicStudy()

func PrintName

func PrintName(aware NameAware)

func PrintType

func PrintType(obj interface{})

func SafeClose

func SafeClose(ch chan string) (justClosed bool)

func SafeSend

func SafeSend(ch chan string, value string) (closed bool)

func SayHello

func SayHello(message string, count int)

func StudyAddress

func StudyAddress()

func StudyArray

func StudyArray()

func StudyChannel

func StudyChannel()

func StudyLog

func StudyLog()

func StudySync

func StudySync()

func Swap1

func Swap1(a, b *int)

func Swap2

func Swap2(a, b *int)

func TestStruct

func TestStruct()

func TypeStudy

func TypeStudy()

Types

type Handler

type Handler func(s string) int

func (Handler) Add

func (h Handler) Add(param1 string, param2 int) int

type NameAware

type NameAware interface {
	GetName() string
}

type Student

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

func (Student) GetName

func (s Student) GetName() string

func (*Student) SetName

func (s *Student) SetName(str string)

type User

type User struct {
	Name  string `mytag:"A"`
	Email string `mytag:"B"`
}

type Vertex

type Vertex struct {
	X int
	Y int
}

type Vertex2

type Vertex2 struct {
	X, Y int
}

Jump to

Keyboard shortcuts

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