file

package
v0.0.0-...-50f8553 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(str string) string

Capitalize 字符首字母大写

func CreateNginxConfig

func CreateNginxConfig(confFile string, tplfile string, outfile string) error

生成站点系统和静态网站的nginx配置文件

func OutTemplateTxt

func OutTemplateTxt(data interface{}, tplfile string, outfile string) error

将一个模板文件加工生成一个文本文件

func PathExists

func PathExists(path string) (bool, error)

检查某个文件是否存在

func ReadTxtRowToArray

func ReadTxtRowToArray(fileName string) []string

逐行读取txt内容,并转换成数组

func WriteTxtFile

func WriteTxtFile(info string, file string) error

写一个文本文件

Types

type ItemNginxConfig

type ItemNginxConfig struct {
	SiteType   string
	ServerName string
	Other      string
}

Jump to

Keyboard shortcuts

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