gox

package module
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT, Apache-2.0 Imports: 0 Imported by: 3

README

utils

Standard library extensions

各种工具库

scheduler

engine

一个任务调度框架,可以控制goroutine数量,任务失败重试,任务衍生子任务执行,任务检测,任务统计

crawler

爬虫框架,基于scheduler/engine

dao

各种常用dao的封装

database

数据库操作封装,主要针对gorm扩展开发

eflag

通过环境变量 flag 注入结构体

log

zap的二次封装,开箱即用

iter

标准库iter的扩展,stream操作实现

net

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match[T any](yes bool, a, b T) T

Match returns a if yes is true; otherwise it returns b.

func Nil

func Nil[T any]() *T

Nil returns a nil pointer of type *T.

func Pointer

func Pointer[T any](t T) *T

Pointer returns a pointer to t.

func TernaryOperator

func TernaryOperator[T any](v bool, a, b T) T

TernaryOperator returns a if v is true; otherwise it returns b.

func Zero

func Zero[T any]() T

Zero returns the zero value for T.

Types

This section is empty.

Directories

Path Synopsis
archive
zip
consistenthash
Package consistenthash provides an implementation of a ring hash.
Package consistenthash provides an implementation of a ring hash.
set
crypto
aes
md5
tls
database
sql
gerber/svg
Package svg parses Gerber to SVG.
Package svg parses Gerber to SVG.
m3u8
Partial reference https://github.com/grafov/m3u8/blob/master/reader.go
Partial reference https://github.com/grafov/m3u8/blob/master/reader.go
media
net
url
os
fs
shm
win
* Copyright 2024 hopeio.
* Copyright 2024 hopeio.
aop
sdk
go
Package singleflight provides a duplicate function call suppression mechanism.
Package singleflight provides a duplicate function call suppression mechanism.
map
text
tools
ddns command
gerber command
goat command
proxy command
x509 command

Jump to

Keyboard shortcuts

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