21 lines
364 B
Go
21 lines
364 B
Go
|
package game
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func (gm *Game) RemoveQuote(usrId string, quoteId string) error {
|
||
|
quote, err := gm.getQuoteById(quoteId)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
if quote.GetSourceId() != usrId {
|
||
|
return fmt.Errorf("usrId does not match quote source id")
|
||
|
}
|
||
|
|
||
|
fmt.Printf("%v\n", quote)
|
||
|
|
||
|
return fmt.Errorf("Game::RemoveQuote() not yet implemented")
|
||
|
}
|