fs

package
v0.0.0-...-43e49cb Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

README

fs

import "gitee.com/minph/siphan/fs"

Overview

Export List

func ClearFile

func ClearFile(file string) error

func ReadHexKeyContent

func ReadHexKeyContent(content string) (diycode.CodeSlice, error)

从字符串解析 CodeSlice

使用默认 diycode.CodeStr

func ReadHexKeyContentFromSlice

func ReadHexKeyContentFromSlice(content string, orderSlice diycode.CodeSlice) (diycode.CodeSlice, error)

从字符串解析 CodeSlice

需要指定 orderSlice

func ReadHexKeyFromFile

func ReadHexKeyFromFile(filename string) (diycode.CodeSlice, error)

从文件内容读取并解析 CodeSlice

使用默认 diycode.CodeStr

func ReadHexKeyFromFileWithSlice

func ReadHexKeyFromFileWithSlice(filename string, orderSlice diycode.CodeSlice) (diycode.CodeSlice, error)

从文件内容读取并解析 CodeSlice

需要指定 orderSlice

func RemoveFileExt

func RemoveFileExt(file string) string

获取文件路径后缀名前部分

func WriteNewFile

func WriteNewFile(filename, data string) error

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearFile

func ClearFile(file string) error

func ReadHexKeyContent

func ReadHexKeyContent(content string) (diycode.CodeSlice, error)

从字符串解析 CodeSlice

使用默认 diycode.CodeStr

func ReadHexKeyContentFromSlice

func ReadHexKeyContentFromSlice(content string, orderSlice diycode.CodeSlice) (diycode.CodeSlice, error)

从字符串解析 CodeSlice

需要指定 orderSlice

func ReadHexKeyFromFile

func ReadHexKeyFromFile(filename string) (diycode.CodeSlice, error)

从文件内容读取并解析 CodeSlice

使用默认 diycode.CodeStr

func ReadHexKeyFromFileWithSlice

func ReadHexKeyFromFileWithSlice(filename string, orderSlice diycode.CodeSlice) (diycode.CodeSlice, error)

从文件内容读取并解析 CodeSlice

需要指定 orderSlice

func RemoveFileExt

func RemoveFileExt(file string) string

获取文件路径后缀名前部分

func WriteNewFile

func WriteNewFile(filename, data string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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