master
joce 3 years ago
parent dcedf2ad9f
commit e3464aca1f
  1. 2
      cnn_market.go
  2. 2
      markup.go
  3. 4
      screen.go
  4. 2
      sorter.go
  5. 2
      yahoo_quotes.go

@ -108,7 +108,7 @@ func (market *Market) Fetch() (self *Market) {
return market.extract(market.trim(body))
}
// Ok returns two values: 1) boolean indicating whether the error has occured,
// Ok returns two values: 1) boolean indicating whether the error has occurred,
// and 2) the error text itself.
func (market *Market) Ok() (bool, string) {
return market.errors == ``, market.errors

@ -77,7 +77,7 @@ func (markup *Markup) Tokenize(str string) []string {
tail = match[0]
if match[1] != 0 {
if head != 0 || tail != 0 {
// Apend the text between tags.
// Append the text between tags.
strings = append(strings, str[head:tail])
}
// Append the tag itmarkup.

@ -12,8 +12,8 @@ import (
`fmt`
)
// Screen is thin wrapper aroung Termbox library to provide basic display
// capabilities as requied by Mop.
// Screen is thin wrapper around Termbox library to provide basic display
// capabilities as required by Mop.
type Screen struct {
width int // Current number of columns.
height int // Current number of rows.

@ -223,7 +223,7 @@ func (sorter *Sorter) SortByCurrentColumn(stocks []Stock) *Sorter {
}
// The same exact method is used to sort by $Change and Change%. In both cases
// we sort by the value of Change% so that multiple $0.00s get sorted proferly.
// we sort by the value of Change% so that multiple $0.00s get sorted properly.
func c(str string) float32 {
c := "$"
for _, v := range currencies {

@ -96,7 +96,7 @@ func (quotes *Quotes) Fetch() (self *Quotes) {
return quotes
}
// Ok returns two values: 1) boolean indicating whether the error has occured,
// Ok returns two values: 1) boolean indicating whether the error has occurred,
// and 2) the error text itself.
func (quotes *Quotes) Ok() (bool, string) {
return quotes.errors == ``, quotes.errors

Loading…
Cancel
Save