base

package
v0.0.0-...-52bee24 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package base 内置基础类型简单使用

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x, y int) int

Add 函数

func Bytes2String

func Bytes2String(b []byte) string

func Constants

func Constants()

Constants 常量

func Convert2bin

func Convert2bin(n int) string

Convert2bin if条件

func DeferFunc

func DeferFunc()

DeferFunc defer函数

func Env

func Env()

func Euler

func Euler()

Euler 验证欧拉公式

func IfFunc

func IfFunc()

if条件

func Loop

func Loop()

Loop for循环

func PrintFile

func PrintFile()

func ReadFile

func ReadFile()

func Split

func Split(sum int) (x, y int)

Split 函数 命明返回值

func Sqrt

func Sqrt(x float64) float64

Sqrt 牛顿法计算平方根

func String2Bytes

func String2Bytes(s string) []byte

String2Bytes 字符串转换byte[]

func Swap

func Swap(x, y string) (string, string)

Swap 函数

func SwitchFunc

func SwitchFunc()

SwitchFunc switch函数

func TestIoRead

func TestIoRead()

func Triangle

func Triangle()

类型转换 标准转换 表达式 T(v) 将值 v 转换为类型 T

func Variables

func Variables()

Variables 定义变量

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