This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Cement struct { | |
NoOfCement int | |
} | |
func (c *Cement) BuyCement(howmany int) { | |
c.NoOfCement += howmany | |
} | |
func (c *Cement) SellCement(howmany int) { | |
o.NoOfCement -= howmany |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |