gotools

package module
v0.0.0-...-48f4c87 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 4 Imported by: 0

README

golang tools 🛠

Go언어를 사용하면서 생각보다 많이 사용한 코드들을 패키지화 하여서 손 쉽게 사용할 수 있도록 만들었습니다.

File & Code Introduction

  • gotools
    • path.go - 디렉토리, 파일과 경로에 관한 파일입니다.

MIT License

Documentation

Overview

(C) 2022 HyunSang Park <me@hyunsang.dev>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(path string) error

파일을 삭제하는 함수입니다.

func DirectoryItemReader

func DirectoryItemReader(path string) (string, error)

디렉토리 내부에 있는 오브젝트를 읽습니다.

func FindExt

func FindExt(fileName string) string

파일의 확장자를 찾습니다. ex. helloworld.go => ".go"

func Route

func Route() (path string)

현재의 경로를 알려줍니다. ex ~/dev/golang/hello-world

Types

This section is empty.

Jump to

Keyboard shortcuts

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