utils

package
v0.0.0-...-7b11d45 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCaseToUnderscore

func CamelCaseToUnderscore(s string) string

func CreateAvatar

func CreateAvatar(avatar, resu, url string) (image.Image, error)

func ImageResize

func ImageResize(src image.Image, w, h int) image.Image

func ToLower

func ToLower(s string) string

func ToUpper

func ToUpper(s string) string

func UnderscoreToLowerCamelCase

func UnderscoreToLowerCamelCase(s string) string

func UnderscoreToUpperCamelCase

func UnderscoreToUpperCamelCase(s string) string

Types

type UserInfo

type UserInfo struct {
	Name     string
	Mid      string
	VideoNum float64
	Fans     float64
	Level    float64
	PlayNum  string
	Likes    string
}

func GetUserInfo

func GetUserInfo(name string) []UserInfo

Jump to

Keyboard shortcuts

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