Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 315 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 315 Bytes

golibrary

存了一些开发项目时常见的函数, 封装好了以便以后直接拿来用.

Usage

import "github.com/Kai5174/golibrary"

func main() {
    content, err := golibrary.ReadFile("hello.txt")
    if err != nil {
        log.Panicln(err.Error())
    }
    fmt.Println(string(content))
}