utils

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package classification User API.

The purpose of this service is to provide an application that is using plain go code to define an API

Host: localhost
Version: 0.0.1

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertNodeName

func ConvertNodeName(node string) string

ConvertNodeName e.g.(10.23.10.12 => 10-23-10-12)

func DataPatination

func DataPatination[T any](origin []T, page, pageSize int32) []T

nolint

func DivideOperate

func DivideOperate(num1, num2 int64) (float64, error)

func GetNamespace

func GetNamespace() string

GetNamespace get Namespace from env, else it returns error

func GetNodeName

func GetNodeName() string

GetNodeName gets the node name from env, else returns an error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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