core

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug bool = true
)

Functions

func ExecuteFn

func ExecuteFn(fn func(interface{}), list []interface{})

func ExistFile

func ExistFile(path string) bool

func Print

func Print(a ...interface{}) (n int, err error)

Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.

func Printf

func Printf(format string, a ...interface{}) (n int, err error)

Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.

func Println

func Println(a ...interface{}) (n int, err error)

Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered

Types

type ThreadPool

type ThreadPool struct {
	Size int
	// contains filtered or unexported fields
}

func NewThreadPool

func NewThreadPool(size int) *ThreadPool

func (*ThreadPool) Execute

func (pool *ThreadPool) Execute(task *ThreadTask) bool

func (*ThreadPool) Shutdown

func (pool *ThreadPool) Shutdown()

type ThreadTask

type ThreadTask struct {
	Fn   func(int, interface{})
	Argv interface{}
}

Jump to

Keyboard shortcuts

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