util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWccVersion

func GetWccVersion(source string) string

GetWccVersion 从源代码字符串中提取 __wcc_version__ 的值

func GetWxapkgType

func GetWxapkgType(fileList []string) WxapkgType

GetWxapkgType 根据文件列表判断微信小程序包的类型

func HumanReadableSize

func HumanReadableSize(size uint64) string

HumanReadableSize 转换为人类可读的文件大小

func TransformCSS

func TransformCSS(style string) string

TransformCSS 函数用于转换 CSS

Types

type Declaration

type Declaration struct {
	Property string
	Value    string
}

Declaration 结构体用于存储 CSS 声明

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳