Skip to content

Instantly share code, notes, and snippets.

View ogaere's full-sized avatar

Ebikekeme F Ere ogaere

  • Eresoft Ltd
  • 13:57 (UTC -12:00)
View GitHub Profile
@ogaere
ogaere / buyandsell.go
Created June 29, 2021 12:02
Tell me what is wrong with this of code
type Cement struct {
NoOfCement int
}
func (c *Cement) BuyCement(howmany int) {
c.NoOfCement += howmany
}
func (c *Cement) SellCement(howmany int) {
o.NoOfCement -= howmany
package getstudentinfo
//You enter a student id
// You get back the student result
//This is a rewrite of the original API in Delphi
// I am using Fiebirdsql
import (
"context"
"golang.org/x/sync/singleflight"
"database/sql"
_ "github.com/nakagami/firebirdsql"