data

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDivision

func SetDivision(f *model.Fighter, d string)

SetDivision sets division based on Division type.

func SetStatistic

func SetStatistic(f *model.Fighter, stat string)

SetStatistic sets the statistical data for a Fighter based on the provided string 'stat'. The function splits the input string, extracts individual parts, converts them to integers, and sets the Wins, Loses, and Draw fields of the Fighter accordingly. If conversion errors occur, it logs an error and sets the corresponding value to 0.

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