common

package
v0.0.0-...-80d2ad1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const LeftRate = float64(1.25)
View Source
const RecordRate = float64(1.25)

record pos, left and right all use 1.25 rate so if use in left x,y = x * LeftRate / RecordRate, y * LeftRate / RecordRate, so if use in right x,y = x * RightRate / RecordRate, y * RightRate / RecordRate,

View Source
const RightRate = float64(1.0)

Variables

This section is empty.

Functions

func AllowEmpty

func AllowEmpty(wordStr string) string

AllowEmpty "否" to ",omitempty"

func FirstUp

func FirstUp(wordStr string) string

func GetAutoXy

func GetAutoXy(x, y int) (cX, cY int)

func GetCurrentScreenRate

func GetCurrentScreenRate() float64

func GetLeftXy

func GetLeftXy(x, y int) (cX, cY int)

func GetRealPx

func GetRealPx(x, y int) (x100, y100 int)

GetRealPx return x * 125 / 100

func GetRightXy

func GetRightXy(x, y int) (cX, cY int)

func IntJoin

func IntJoin(arr []int) string

IntJoin [1,2,3] to 1,2,3

func ToAuto100

func ToAuto100(x, y int) (x100, y100 int)

func ToField

func ToField(wordStr string) string

ToField "user_id" to "UserId"

Types

This section is empty.

Jump to

Keyboard shortcuts

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