Categorygithub.com/deoops-net/easy
modulepackage
0.3.0
Repository: https://github.com/deoops-net/easy.git
Documentation: pkg.go.dev

# README

easy

golang sugar library

OS Methods

import "github.com/deoops-net/easy"

  • RootDir() string returns the absolute root directory
fmt.Println(RootDir())

Hash Methods

import "github.com/deoops-net/easy/hash"

  • MD5(string) string
fmt.Println(hash.MD5("foo"))

Database

based on official mongodb driver, for using mongo easily

import db "github.com/deoops-net/easy/db/mongo"

  • db.IniConn(db.MongoConf) nil
  • db.Table(string) *mongo.Collection
conf := db.MongoConf{}
db.IniConn(conf)
db.Table("users").FindOne(context.Background(), bson.M{})

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author