Documentation ¶
Index ¶
- func InsertDataAccounts(db *mongo.Database, nama, email, sosial string, perusahaan string) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- type Accounts
- func DeleteDataAccounts(perusahaan string, db *mongo.Database, col string) (data Accounts)
- func DeleteDataNama(nama string, db *mongo.Database, col string) (data Accounts)
- func GetDataAccounts(perusahaan string, db *mongo.Database, col string) (data Accounts)
- func GetDataNama(nama string, db *mongo.Database, col string) (data Accounts)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertDataAccounts ¶
func InsertOneDoc ¶
Types ¶
type Accounts ¶
type Accounts struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Nama string `bson:"name,omitempty" json:"name,omitempty"` Email string `bson:"email,omitempty" json:"email,omitempty"` Sosial string `bson:"sosial,omitempty" json:"sosial,omitempty"` Perusahaan string `bson:"perusahaan,omitempty" json:"perusahaan,omitempty"` }
func DeleteDataAccounts ¶
func DeleteDataNama ¶
func GetDataAccounts ¶
Click to show internal directories.
Click to hide internal directories.