unittest

package
v0.0.0-...-293ca13 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferWFile

func BufferWFile(content []string, filename string)

BufferWFile TODO:if fileExist execute create else append

content:[]string
filename:AbsolutePath or RelativePath

func ConnectMysql

func ConnectMysql() string

ConnectMysql() Mysql Select data

func CpuProfile

func CpuProfile()

CpuProfile 工具形应用主要使用 runtime/pprof 库,将画像数据写入文件中。

func Fib

func Fib(n int) int

func ReadFile

func ReadFile(path string)

ReadFile 将文件整个读入内存

func ReadIoFile

func ReadIoFile(path string)

ReadIoFile 🌟将文件整个读入内存,效率比较高,占用内存也最高。

func SyncMux

func SyncMux()

SyncMux 并发请求API

Types

This section is empty.

Jump to

Keyboard shortcuts

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