util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

* Copyright (c) 2000-2018, 达梦数据库有限公司. * All rights reserved.

Index

Constants

View Source
const (
	PathSeparator     = string(os.PathSeparator)
	PathListSeparator = string(os.PathListSeparator)
)
View Source
const (
	LINE_SEPARATOR = "\n"
)

Variables

View Source
var FileUtil = &fileUtil{}
View Source
var StringUtil = &stringutil{}

Functions

func GCD

func GCD(m int32, n int32) int32

获取两个数的最大公约数,由调用者确保m、n>=0;如果m或n为0,返回1

func SliceEquals

func SliceEquals(src []byte, dest []byte) bool

func Split

func Split(s string, sep string) []string

func Sum

func Sum(arr []int32) int32

返回切片中所有数的累加值

Types

This section is empty.

Jump to

Keyboard shortcuts

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