Skip to content

A set of functions used in the daily life of a go programmer.

License

Notifications You must be signed in to change notification settings

shouva/dailyhelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dailyhelper

A set of functions used in the daily life of a go programmer.

How to user

installation

get the library

go get github.com/shouva/dailyhelper

using

// import
import helper "github.com/shouva/dailyhelper"
...

//getcurrent dir
currentdir := helper.GetCurrentPath()

//get config

//create struct
struct Setting {
    Name string `json:"name"`
    Nomor uint16 `json:"nomor"`
}

//read the config
var setting Setting
err :=helper.ReadConfig(currentdir + "/config.json", &setting)

fmt.Println(setting.Name)

Sponsorship

This repository is sponsored by Shouva Store and Otoritech.

About

A set of functions used in the daily life of a go programmer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages