module

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoInfo = atdb.DBInfo{
	DBString: MongoString,
	DBName:   "ATS",
}
View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func GetAllBiodata

func GetAllBiodata(db *mongo.Database, col string) (data []model.Biodata)

func InsertBiodata

func InsertBiodata(nama string, jk string, agama string, prodi string, datadiri interface{}, alamat interface{}) interface{}

func InsertOneDoc

func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})

func MongoConnect

func MongoConnect(dbname string) (db *mongo.Database)

Types

This section is empty.

Jump to

Keyboard shortcuts

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