util

package
v0.0.0-...-3f1cc49 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright © 2023 Xu Wu <ixw1991@126.com> Use of this source code is governed by a MIT style license that can be found in the LICENSE file.

Copyright © 2023 Xu Wu <ixw1991@126.com> Use of this source code is governed by a MIT style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequiredConfigs

func CheckRequiredConfigs(configs ...string)

func UnpackTarGz

func UnpackTarGz(data []byte, dst string) (string, error)

UnpackTarGz 解压一个 tar.gz 文件到指定的目的地,返回解压后的根目录全路径。 输入参数 data 是包含压缩文件内容的字节切片,dst 是解压文件的目标目录。 如果在解压过程中发生错误,会返回一个非 nil 的 error。

Types

This section is empty.

Jump to

Keyboard shortcuts

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