utils

package module
v0.0.0-...-72bb39b Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 0 Imported by: 0

README

utils

工具类

Usage

you need to import the corresponding package name when use it. For example, if you use string-related functions,import the algorithm package like below:

import "github.com/seanxu24/taco/utils/algorithm"

Example

Here takes the algorithm function NewLRUCache as an example, and the algorithm package needs to be imported.

package main

import (
    "github.com/seanxu24/taco/utils/algorithm"
)

func main() {
	cache := algorithm.NewLRUCache[int, int](2)

	cache.Put(1, 1)
	_, _ = cache.Get(0)
}

Documentation

Overview

Package utils 工具类

Directories

Path Synopsis
Package algorithm contain some basic algorithm function.
Package algorithm contain some basic algorithm function.
Package concurrency contain some functions to support concurrent programming.
Package concurrency contain some functions to support concurrent programming.
Package constraints contain some customer constraints.
Package constraints contain some customer constraints.
Package convertor implements some functions to convert data.
Package convertor implements some functions to convert data.
Package cryptor implements some util functions to encrypt and decrypt.
Package cryptor implements some util functions to encrypt and decrypt.
Package datastructure implements some data structure.
Package datastructure implements some data structure.
list
Package datastructure implements some data structure.
Package datastructure implements some data structure.
Package internal is for internal use.
Package internal is for internal use.

Jump to

Keyboard shortcuts

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