SYMBOL INDEX (1423 symbols across 393 files) FILE: eBook/examples/chapter_10/embed_func1.go type Log (line 7) | type Log struct method Add (line 29) | func (l *Log) Add(s string) { method String (line 33) | func (l *Log) String() string { type Customer (line 11) | type Customer struct method Log (line 37) | func (c *Customer) Log() *Log { function main (line 16) | func main() { FILE: eBook/examples/chapter_10/embed_func2.go type Log (line 7) | type Log struct method Add (line 22) | func (l *Log) Add(s string) { method String (line 30) | func (l *Log) String() string { type Customer (line 11) | type Customer struct method String (line 26) | func (c *Customer) String() string { function main (line 16) | func main() { FILE: eBook/examples/chapter_10/embedd_struct.go type A (line 5) | type A struct type B (line 9) | type B struct function main (line 14) | func main() { FILE: eBook/examples/chapter_10/main.go function main (line 8) | func main() { FILE: eBook/examples/chapter_10/method1.go type TwoInts (line 5) | type TwoInts struct method AddThem (line 23) | func (tn *TwoInts) AddThem() int { method AddToParam (line 27) | func (tn *TwoInts) AddToParam(param int) int { function main (line 10) | func main() { FILE: eBook/examples/chapter_10/method2.go type IntVector (line 5) | type IntVector method Sum (line 7) | func (v IntVector) Sum() (s int) { function main (line 14) | func main() { FILE: eBook/examples/chapter_10/method3.go type Point (line 8) | type Point struct method Abs (line 12) | func (p *Point) Abs() float64 { type NamedPoint (line 16) | type NamedPoint struct function main (line 21) | func main() { FILE: eBook/examples/chapter_10/method4.go type Point (line 8) | type Point struct method Abs (line 12) | func (p *Point) Abs() float64 { type NamedPoint (line 16) | type NamedPoint struct method Abs (line 21) | func (n *NamedPoint) Abs() float64 { function main (line 25) | func main() { FILE: eBook/examples/chapter_10/method_on_time.go type myTime (line 9) | type myTime struct method first3Chars (line 13) | func (t myTime) first3Chars() string { function main (line 17) | func main() { FILE: eBook/examples/chapter_10/method_string.go type TwoInts (line 8) | type TwoInts struct method String (line 23) | func (tn *TwoInts) String() string { function main (line 13) | func main() { FILE: eBook/examples/chapter_10/methodset1.go type List (line 8) | type List method Len (line 10) | func (l List) Len() int { return len(l) } method Append (line 11) | func (l *List) Append(val int) { *l = append(*l, val) } function main (line 13) | func main() { FILE: eBook/examples/chapter_10/mult_inheritance.go type Camera (line 6) | type Camera struct method TakeAPicture (line 8) | func (c *Camera) TakeAPicture() string { type Phone (line 12) | type Phone struct method Call (line 14) | func (p *Phone) Call() string { type CameraPhone (line 19) | type CameraPhone struct function main (line 24) | func main() { FILE: eBook/examples/chapter_10/new_make.go type Foo (line 4) | type Foo type Bar (line 5) | type Bar struct function main (line 10) | func main() { FILE: eBook/examples/chapter_10/person.go type Person (line 8) | type Person struct function upPerson (line 13) | func upPerson(p *Person) { function main (line 18) | func main() { FILE: eBook/examples/chapter_10/person2.go type Person (line 3) | type Person struct method FirstName (line 8) | func (p *Person) FirstName() string { method SetFirstName (line 12) | func (p *Person) SetFirstName(newName string) { FILE: eBook/examples/chapter_10/pointer_value.go type B (line 8) | type B struct method change (line 12) | func (b *B) change() { b.thing = 1 } method write (line 14) | func (b B) write() string { return fmt.Sprint(b) } function main (line 16) | func main() { FILE: eBook/examples/chapter_10/struct_conversions.go type number (line 8) | type number struct type nr (line 12) | type nr function main (line 14) | func main() { FILE: eBook/examples/chapter_10/struct_pack/structPack.go type ExpStruct (line 3) | type ExpStruct struct FILE: eBook/examples/chapter_10/struct_tag.go type TagType (line 8) | type TagType struct function main (line 14) | func main() { function refTag (line 21) | func refTag(tt TagType, ix int) { FILE: eBook/examples/chapter_10/structs_anonymous_fields.go type innerS (line 5) | type innerS struct type outerS (line 10) | type outerS struct function main (line 17) | func main() { FILE: eBook/examples/chapter_10/structs_fields.go type struct1 (line 5) | type struct1 struct function main (line 11) | func main() { FILE: eBook/examples/chapter_10/use_person2.go function main (line 8) | func main() { FILE: eBook/examples/chapter_11/cars.go type Any (line 8) | type Any interface type Car (line 9) | type Car struct type Cars (line 15) | type Cars method Process (line 40) | func (cs Cars) Process(f func(car *Car)) { method FindAll (line 47) | func (cs Cars) FindAll(f func(car *Car) bool) Cars { method Map (line 59) | func (cs Cars) Map(f func(car *Car) Any) []Any { function main (line 17) | func main() { function MakeSortedAppender (line 69) | func MakeSortedAppender(manufacturers []string) (func(car *Car), map[str... FILE: eBook/examples/chapter_11/duck_dance.go type IDuck (line 5) | type IDuck interface function DuckDance (line 10) | func DuckDance(duck IDuck) { type Bird (line 17) | type Bird struct method Quack (line 21) | func (b *Bird) Quack() { method Walk (line 25) | func (b *Bird) Walk() { function main (line 29) | func main() { FILE: eBook/examples/chapter_11/empty_interface.go type Person (line 8) | type Person struct type Any (line 13) | type Any interface function main (line 15) | func main() { FILE: eBook/examples/chapter_11/emptyint_switch.go type specialString (line 5) | type specialString function TypeSwitch (line 9) | func TypeSwitch() { function main (line 29) | func main() { FILE: eBook/examples/chapter_11/interfaces.go type Shaper (line 5) | type Shaper interface type Square (line 10) | type Square struct method Area (line 14) | func (sq *Square) Area() float32 { function main (line 18) | func main() { FILE: eBook/examples/chapter_11/interfaces_poly.go type Shaper (line 6) | type Shaper interface type Square (line 10) | type Square struct method Area (line 14) | func (sq *Square) Area() float32 { type Rectangle (line 18) | type Rectangle struct method Area (line 22) | func (r Rectangle) Area() float32 { function main (line 26) | func main() { FILE: eBook/examples/chapter_11/methodset2.go type List (line 8) | type List method Len (line 10) | func (l List) Len() int { return len(l) } method Append (line 11) | func (l *List) Append(val int) { *l = append(*l, val) } type Appender (line 13) | type Appender interface function CountInto (line 17) | func CountInto(a Appender, start, end int) { type Lener (line 23) | type Lener interface function LongEnough (line 27) | func LongEnough(l Lener) bool { function main (line 31) | func main() { FILE: eBook/examples/chapter_11/multi_interfaces_poly.go type Shaper (line 6) | type Shaper interface type TopologicalGenus (line 10) | type TopologicalGenus interface type Square (line 14) | type Square struct method Area (line 18) | func (sq *Square) Area() float32 { method Rank (line 22) | func (sq *Square) Rank() int { type Rectangle (line 26) | type Rectangle struct method Area (line 30) | func (r Rectangle) Area() float32 { method Rank (line 34) | func (r Rectangle) Rank() int { function main (line 38) | func main() { FILE: eBook/examples/chapter_11/node_structures.go type Node (line 6) | type Node struct method SetData (line 16) | func (n *Node) SetData(data interface{}) { function NewNode (line 12) | func NewNode(left, right *Node) *Node { function main (line 20) | func main() { FILE: eBook/examples/chapter_11/print.go type Stringer (line 9) | type Stringer interface type Celsius (line 13) | type Celsius method String (line 15) | func (c Celsius) String() string { type Day (line 19) | type Day method String (line 23) | func (day Day) String() string { function print (line 27) | func print(args ...interface{}) { function main (line 46) | func main() { FILE: eBook/examples/chapter_11/reflect1.go function main (line 10) | func main() { FILE: eBook/examples/chapter_11/reflect2.go function main (line 9) | func main() { FILE: eBook/examples/chapter_11/reflect_struct.go type NotknownType (line 9) | type NotknownType struct method String (line 13) | func (n NotknownType) String() string { function main (line 20) | func main() { FILE: eBook/examples/chapter_11/reflect_struct2.go type T (line 9) | type T struct function main (line 14) | func main() { FILE: eBook/examples/chapter_11/sort/sort.go type Interface (line 8) | type Interface interface function Sort (line 15) | func Sort(data Interface) { function IsSorted (line 24) | func IsSorted(data Interface) bool { type IntArray (line 35) | type IntArray method Len (line 37) | func (p IntArray) Len() int { return len(p) } method Less (line 38) | func (p IntArray) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 39) | func (p IntArray) Swap(i, j int) { p[i], p[j] = p[j], p[i] } type Float64Array (line 41) | type Float64Array method Len (line 43) | func (p Float64Array) Len() int { return len(p) } method Less (line 44) | func (p Float64Array) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 45) | func (p Float64Array) Swap(i, j int) { p[i], p[j] = p[j], p[i] } type StringArray (line 47) | type StringArray method Len (line 49) | func (p StringArray) Len() int { return len(p) } method Less (line 50) | func (p StringArray) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 51) | func (p StringArray) Swap(i, j int) { p[i], p[j] = p[j], p[i] } function SortInts (line 54) | func SortInts(a []int) { Sort(IntArray(a)) } function SortFloat64s (line 55) | func SortFloat64s(a []float64) { Sort(Float64Array(a)) } function SortStrings (line 56) | func SortStrings(a []string) { Sort(StringArray(a)) } function IntsAreSorted (line 58) | func IntsAreSorted(a []int) bool { return IsSorted(IntArray(a)) } function Float64sAreSorted (line 59) | func Float64sAreSorted(a []float64) bool { return IsSorted(Float64Array(... function StringsAreSorted (line 60) | func StringsAreSorted(a []string) bool { return IsSorted(StringArray(a... FILE: eBook/examples/chapter_11/sortmain.go function ints (line 14) | func ints() { function strings (line 25) | func strings() { type day (line 36) | type day struct type dayArray (line 42) | type dayArray struct method Len (line 46) | func (p *dayArray) Len() int { return len(p.data) } method Less (line 47) | func (p *dayArray) Less(i, j int) bool { return p.data[i].num < p.data... method Swap (line 48) | func (p *dayArray) Swap(i, j int) { p.data[i], p.data[j] = p.data... function days (line 51) | func days() { function main (line 71) | func main() { FILE: eBook/examples/chapter_11/static.go function main (line 14) | func main() { FILE: eBook/examples/chapter_11/tideland-cgl.googlecode.com/hg/cgl.go constant RELEASE (line 60) | RELEASE = "Tideland Common Go Library Release 2011-08-02" function Debug (line 67) | func Debug(format string, a ...interface{}) { type UUID (line 79) | type UUID method Raw (line 103) | func (uuid UUID) Raw() []byte { method String (line 113) | func (uuid UUID) String() string { function NewUUID (line 82) | func NewUUID() UUID { function LimitedSepIdentifier (line 128) | func LimitedSepIdentifier(sep string, limit bool, parts ...interface{}) ... function SepIdentifier (line 166) | func SepIdentifier(sep string, parts ...interface{}) string { function Identifier (line 172) | func Identifier(parts ...interface{}) string { function TypeAsIdentifierPart (line 179) | func TypeAsIdentifierPart(i interface{}) string { function Dispatch (line 204) | func Dispatch(variable interface{}, name string, args ...interface{}) ([... type EvalFunc (line 251) | type EvalFunc function BuildLazyEvaluator (line 254) | func BuildLazyEvaluator(evalFunc EvalFunc, initState interface{}) func()... function BuildLazyIntEvaluator (line 278) | func BuildLazyIntEvaluator(evalFunc EvalFunc, initState interface{}) fun... FILE: eBook/examples/chapter_11/tideland-cgl.googlecode.com/hg/cgl_test.go function TestSingleRecovering (line 57) | func TestSingleRecovering(t *testing.T) { function TestMultipleRecovering (line 79) | func TestMultipleRecovering(t *testing.T) { function TestSingleHeartbeatTimeout (line 95) | func TestSingleHeartbeatTimeout(t *testing.T) { function TestMultipleHeartbeatTimeout (line 107) | func TestMultipleHeartbeatTimeout(t *testing.T) { function TestFsmSuccess (line 123) | func TestFsmSuccess(t *testing.T) { function TestFsmTimeout (line 141) | func TestFsmTimeout(t *testing.T) { function TestDispatching (line 162) | func TestDispatching(t *testing.T) { function TestDebug (line 177) | func TestDebug(t *testing.T) { function TestNanoseconds (line 182) | func TestNanoseconds(t *testing.T) { function TestTimeContainments (line 193) | func TestTimeContainments(t *testing.T) { function TestUuid (line 221) | func TestUuid(t *testing.T) { function TestIdentifier (line 240) | func TestIdentifier(t *testing.T) { function TestLazyIntEvaluator (line 283) | func TestLazyIntEvaluator(t *testing.T) { function TestPivot (line 305) | func TestPivot(t *testing.T) { function TestSort (line 321) | func TestSort(t *testing.T) { function TestParallelQuickSort (line 344) | func TestParallelQuickSort(t *testing.T) { function TestMapReduce (line 363) | func TestMapReduce(t *testing.T) { function TestJob (line 418) | func TestJob(t *testing.T) { function TestCrontabKeep (line 457) | func TestCrontabKeep(t *testing.T) { function TestCrontabDelete (line 467) | func TestCrontabDelete(t *testing.T) { function TestSmlCreating (line 477) | func TestSmlCreating(t *testing.T) { function TestSmlWriterProcessing (line 484) | func TestSmlWriterProcessing(t *testing.T) { function TestSmlPositiveReading (line 499) | func TestSmlPositiveReading(t *testing.T) { function TestSmlNegativeReading (line 513) | func TestSmlNegativeReading(t *testing.T) { function TestEtmMonitor (line 527) | func TestEtmMonitor(t *testing.T) { function TestSsiMonitor (line 555) | func TestSsiMonitor(t *testing.T) { function TestDsrMonitor (line 580) | func TestDsrMonitor(t *testing.T) { type TT (line 595) | type TT struct method Add (line 597) | func (tt *TT) Add(a, b int) int { return a + b } method Mul (line 599) | func (tt *TT) Mul(a, b, c, d, e int) int { return a * b * c * d * e } type OrderItem (line 602) | type OrderItem struct type Order (line 610) | type Order struct method String (line 616) | func (o *Order) String() string { type OrderItemAnalysis (line 623) | type OrderItemAnalysis struct method String (line 630) | func (oia *OrderItemAnalysis) String() string { type OrderList (line 637) | type OrderList method Len (line 639) | func (l OrderList) Len() int { method Less (line 643) | func (l OrderList) Less(i, j int) bool { method Swap (line 647) | func (l OrderList) Swap(i, j int) { type Action (line 652) | type Action function PositiveAction (line 655) | func PositiveAction() string { function FailAction (line 662) | func FailAction() string { function TimeConsumingAction (line 671) | func TimeConsumingAction() string { type RecoverableAction (line 680) | type RecoverableAction struct method Action (line 703) | func (ra *RecoverableAction) Action(action Action) string { method Supervisor (line 710) | func (ra *RecoverableAction) Supervisor() *Supervisor { method Recover (line 715) | func (ra *RecoverableAction) Recover(r Recoverable, err interface{}) { method backend (line 726) | func (ra *RecoverableAction) backend() { function NewRecoverableAction (line 688) | func NewRecoverableAction(supervisor *Supervisor) *RecoverableAction { function generateTestOrders (line 742) | func generateTestOrders(count int) KeyValueChan { function generateTestOrdersList (line 781) | func generateTestOrdersList(count int) OrderList { function createJob (line 795) | func createJob(t *testing.T, descr string, delete bool) *Job { function createSmlStructure (line 803) | func createSmlStructure() *TagNode { function work (line 826) | func work(n int) int { type PreparePayload (line 839) | type PreparePayload struct type LoginPayload (line 845) | type LoginPayload struct type ResetPayload (line 850) | type ResetPayload struct type UnlockPayload (line 853) | type UnlockPayload struct type LoginHandler (line 856) | type LoginHandler struct method Init (line 869) | func (lh *LoginHandler) Init() string { method Terminate (line 874) | func (lh *LoginHandler) Terminate(string, interface{}) string { method HandleStateNew (line 879) | func (lh *LoginHandler) HandleStateNew(c *Condition) (string, interfac... method HandleStateAuthenticating (line 906) | func (lh *LoginHandler) HandleStateAuthenticating(c *Condition) (strin... method HandleStateLocked (line 950) | func (lh *LoginHandler) HandleStateLocked(c *Condition) (string, inter... function NewLoginHandler (line 864) | func NewLoginHandler() *LoginHandler { FILE: eBook/examples/chapter_11/tideland-cgl.googlecode.com/hg/cglfsm.go type Condition (line 52) | type Condition struct type transition (line 58) | type transition struct type Timeout (line 64) | type Timeout type Handler (line 71) | type Handler interface type FSM (line 77) | type FSM struct method SendWithResult (line 115) | func (fsm *FSM) SendWithResult(payload interface{}) interface{} { method Send (line 124) | func (fsm *FSM) Send(payload interface{}) { method SendAfter (line 131) | func (fsm *FSM) SendAfter(payload interface{}, ns int64) { method State (line 142) | func (fsm *FSM) State() string { method Supervisor (line 147) | func (fsm *FSM) Supervisor() *Supervisor { method Recover (line 152) | func (fsm *FSM) Recover(recoverable Recoverable, err interface{}) { method analyze (line 159) | func (fsm *FSM) analyze() { method backend (line 180) | func (fsm *FSM) backend() { method handle (line 214) | func (fsm *FSM) handle(t *transition) (string, bool) { function NewFSM (line 87) | func NewFSM(h Handler, timeout int64) *FSM { FILE: eBook/examples/chapter_11/tideland-cgl.googlecode.com/hg/cglmon.go constant etmTLine (line 59) | etmTLine = "+------------------------------------------+-----------+---... constant etmHeader (line 60) | etmHeader = "| Name | Count | Mi... constant etmFormat (line 61) | etmFormat = "| %-40s | %9d | %9.3f | %9.3f | %9.3f | %13.3f | %9d |\n" constant etmFooter (line 62) | etmFooter = "| All times in milliseconds. ... constant etmELine (line 63) | etmELine = "+----------------------------------------------------------... constant ssiTLine (line 65) | ssiTLine = "+------------------------------------------+-----------+---... constant ssiHeader (line 66) | ssiHeader = "| Name | Count | Ac... constant ssiFormat (line 67) | ssiFormat = "| %-40s | %9d | %13d | %13d | %13d | %13d |\n" constant dsrTLine (line 69) | dsrTLine = "+------------------------------------------+---------------... constant dsrHeader (line 70) | dsrHeader = "| Name | Value ... constant dsrFormat (line 71) | dsrFormat = "| %-40s | %-73s |\n" constant cmdMeasuringPointsMap (line 75) | cmdMeasuringPointsMap = iota constant cmdMeasuringPointsDo (line 76) | cmdMeasuringPointsDo constant cmdStaySetVariablesMap (line 77) | cmdStaySetVariablesMap constant cmdStaySetVariablesDo (line 78) | cmdStaySetVariablesDo constant cmdDynamicStatusRetrieversMap (line 79) | cmdDynamicStatusRetrieversMap constant cmdDynamicStatusRetrieversDo (line 80) | cmdDynamicStatusRetrieversDo type command (line 88) | type command struct type SystemMonitor (line 95) | type SystemMonitor struct method BeginMeasuring (line 128) | func (sm *SystemMonitor) BeginMeasuring(id string) *Measuring { method Measure (line 133) | func (sm *SystemMonitor) Measure(id string, f func()) { method MeasuringPointsMap (line 144) | func (sm *SystemMonitor) MeasuringPointsMap(f func(*MeasuringPoint) in... method MeasuringPointsDo (line 156) | func (sm *SystemMonitor) MeasuringPointsDo(f func(*MeasuringPoint)) { method MeasuringPointsWrite (line 164) | func (sm *SystemMonitor) MeasuringPointsWrite(w io.Writer, ff func(*Me... method MeasuringPointsPrintAll (line 192) | func (sm *SystemMonitor) MeasuringPointsPrintAll() { method SetValue (line 197) | func (sm *SystemMonitor) SetValue(id string, v int64) { method StaySetVariablesMap (line 204) | func (sm *SystemMonitor) StaySetVariablesMap(f func(*StaySetVariable) ... method StaySetVariablesDo (line 216) | func (sm *SystemMonitor) StaySetVariablesDo(f func(*StaySetVariable)) { method StaySetVariablesWrite (line 224) | func (sm *SystemMonitor) StaySetVariablesWrite(w io.Writer, ff func(*S... method StaySetVariablesPrintAll (line 246) | func (sm *SystemMonitor) StaySetVariablesPrintAll() { method Register (line 251) | func (sm *SystemMonitor) Register(id string, rf DynamicStatusRetriever) { method Unregister (line 256) | func (sm *SystemMonitor) Unregister(id string) { method DynamicStatusValuesMap (line 263) | func (sm *SystemMonitor) DynamicStatusValuesMap(f func(string, string)... method DynamicStatusValuesDo (line 275) | func (sm *SystemMonitor) DynamicStatusValuesDo(f func(string, string)) { method DynamicStatusValuesWrite (line 283) | func (sm *SystemMonitor) DynamicStatusValuesWrite(w io.Writer, ff func... method DynamicStatusValuesPrintAll (line 304) | func (sm *SystemMonitor) DynamicStatusValuesPrintAll() { method Supervisor (line 309) | func (sm *SystemMonitor) Supervisor() *Supervisor { method Recover (line 314) | func (sm *SystemMonitor) Recover(recoverable Recoverable, err interfac... method backend (line 321) | func (sm *SystemMonitor) backend() { method processCommand (line 365) | func (sm *SystemMonitor) processCommand(cmd *command) { function Monitor (line 107) | func Monitor() *SystemMonitor { type Measuring (line 446) | type Measuring struct method EndMeasuring (line 455) | func (m *Measuring) EndMeasuring() int64 { type MeasuringPoint (line 465) | type MeasuringPoint struct method update (line 490) | func (mp *MeasuringPoint) update(m *Measuring) { function newMeasuringPoint (line 475) | func newMeasuringPoint(m *Measuring) *MeasuringPoint { type value (line 508) | type value struct type StaySetVariable (line 515) | type StaySetVariable struct method update (line 540) | func (ssv *StaySetVariable) update(v *value) { function newStaySetVariable (line 526) | func newStaySetVariable(v *value) *StaySetVariable { type DynamicStatusRetriever (line 559) | type DynamicStatusRetriever type retrieverRegistration (line 562) | type retrieverRegistration struct FILE: eBook/examples/chapter_11/tideland-cgl.googlecode.com/hg/cglsml.go type Processor (line 55) | type Processor interface type Node (line 66) | type Node interface type TagNode (line 76) | type TagNode struct method AppendTag (line 98) | func (tn *TagNode) AppendTag(tag string) *TagNode { method AppendTagNode (line 109) | func (tn *TagNode) AppendTagNode(n *TagNode) *TagNode { method AppendText (line 116) | func (tn *TagNode) AppendText(text string) *TextNode { method AppendTaggedText (line 125) | func (tn *TagNode) AppendTaggedText(tag, text string) *TagNode { method AppendTextNode (line 138) | func (tn *TagNode) AppendTextNode(n *TextNode) *TextNode { method Len (line 145) | func (tn *TagNode) Len() int { method ProcessWith (line 150) | func (tn *TagNode) ProcessWith(p Processor) { method String (line 161) | func (tn *TagNode) String() string { function NewTagNode (line 82) | func NewTagNode(tag string) *TagNode { type TextNode (line 175) | type TextNode struct method Len (line 185) | func (tn *TextNode) Len() int { method ProcessWith (line 190) | func (tn *TextNode) ProcessWith(p Processor) { method String (line 195) | func (tn *TextNode) String() string { function NewTextNode (line 180) | func NewTextNode(text string) *TextNode { function validIdentifier (line 204) | func validIdentifier(id string) bool { constant ctrlText (line 224) | ctrlText = iota constant ctrlSpace (line 225) | ctrlSpace constant ctrlOpen (line 226) | ctrlOpen constant ctrlClose (line 227) | ctrlClose constant ctrlEscape (line 228) | ctrlEscape constant ctrlTag (line 229) | ctrlTag constant ctrlEOF (line 230) | ctrlEOF constant ctrlInvalid (line 231) | ctrlInvalid constant modeInit (line 236) | modeInit = iota constant modeTag (line 237) | modeTag constant modeText (line 238) | modeText type SmlReader (line 242) | type SmlReader struct method RootTagNode (line 278) | func (sr *SmlReader) RootTagNode() (*TagNode, os.Error) { method readNode (line 283) | func (sr *SmlReader) readNode() (*TagNode, int) { method readRune (line 386) | func (sr *SmlReader) readRune() (rune, control int) { function NewSmlReader (line 250) | func NewSmlReader(reader io.Reader) *SmlReader { type SmlWriterProcessor (line 422) | type SmlWriterProcessor struct method OpenTag (line 440) | func (swp *SmlWriterProcessor) OpenTag(tag []string) { method CloseTag (line 448) | func (swp *SmlWriterProcessor) CloseTag(tag []string) { method Text (line 459) | func (swp *SmlWriterProcessor) Text(text string) { method writeIndent (line 470) | func (swp *SmlWriterProcessor) writeIndent(increase bool) { function NewSmlWriterProcessor (line 429) | func NewSmlWriterProcessor(writer io.Writer, prettyPrint bool) *SmlWrite... FILE: eBook/examples/chapter_11/tideland-cgl.googlecode.com/hg/cglsmr.go function insertionSort (line 60) | func insertionSort(data sort.Interface, lo, hi int) { function median (line 69) | func median(data sort.Interface, lo, hi int) int { function partition (line 103) | func partition(data sort.Interface, lo, hi int) (int, int) { function sequentialQuickSort (line 123) | func sequentialQuickSort(data sort.Interface, lo, hi int) { function parallelQuickSort (line 140) | func parallelQuickSort(data sort.Interface, lo, hi int, done chan bool) { function Sort (line 169) | func Sort(data sort.Interface) { type KeyValue (line 182) | type KeyValue struct type KeyValueChan (line 188) | type KeyValueChan type KeyValueChans (line 191) | type KeyValueChans type MapFunc (line 194) | type MapFunc type ReduceFunc (line 197) | type ReduceFunc type SigChan (line 200) | type SigChan function closeSignalChannel (line 207) | func closeSignalChannel(kvc KeyValueChan, size int) SigChan { function performReducing (line 230) | func performReducing(mapEmitChan KeyValueChan, reduceFunc ReduceFunc, re... function performMapping (line 266) | func performMapping(mapInChan KeyValueChan, mapFunc MapFunc, mapSize int... function MapReduce (line 309) | func MapReduce(inChan KeyValueChan, mapFunc MapFunc, mapSize int, reduce... type KeyValueLessFunc (line 326) | type KeyValueLessFunc type SortableKeyValueSet (line 329) | type SortableKeyValueSet struct method Len (line 360) | func (s *SortableKeyValueSet) Len() int { method Less (line 365) | func (s *SortableKeyValueSet) Less(a, b int) bool { method Swap (line 370) | func (s *SortableKeyValueSet) Swap(a, b int) { method DataChan (line 375) | func (s *SortableKeyValueSet) DataChan() KeyValueChan { function NewSortableKeyValueSet (line 335) | func NewSortableKeyValueSet(kvChan KeyValueChan, kvLessFunc KeyValueLess... function SortedMapReduce (line 390) | func SortedMapReduce(inChan KeyValueChan, mapFunc MapFunc, mapSize int, ... function KeyLessFunc (line 402) | func KeyLessFunc(a *KeyValue, b *KeyValue) bool { FILE: eBook/examples/chapter_11/tideland-cgl.googlecode.com/hg/cglsup.go function init (line 56) | func init() { function GlobalSupervisor (line 65) | func GlobalSupervisor() *Supervisor { type Recoverable (line 74) | type Recoverable interface type addRecoverableMsg (line 84) | type addRecoverableMsg struct type cryForHelpMsg (line 90) | type cryForHelpMsg struct type Supervisor (line 96) | type Supervisor struct method AddRecoverable (line 118) | func (s *Supervisor) AddRecoverable(id string, r Recoverable) { method Help (line 123) | func (s *Supervisor) Help(r Recoverable, err interface{}) { method Supervisor (line 128) | func (s *Supervisor) Supervisor() *Supervisor { method Recover (line 133) | func (s *Supervisor) Recover(r Recoverable, err interface{}) { method backend (line 140) | func (s *Supervisor) backend() { function NewSupervisor (line 104) | func NewSupervisor(parent *Supervisor) *Supervisor { type Heartbeatable (line 186) | type Heartbeatable interface type Heartbeat (line 196) | type Heartbeat struct method backend (line 220) | func (h *Heartbeat) backend() { method recoverBelated (line 240) | func (h *Heartbeat) recoverBelated() { method sendHeartbeat (line 255) | func (h *Heartbeat) sendHeartbeat() { function NewHeartbeat (line 205) | func NewHeartbeat(r Recoverable, ns int64) *Heartbeat { function HelpIfNeeded (line 272) | func HelpIfNeeded(r Recoverable, err interface{}) { function ImAlive (line 284) | func ImAlive(h *Heartbeat) { FILE: eBook/examples/chapter_11/tideland-cgl.googlecode.com/hg/cgltim.go function NsMicroseconds (line 50) | func NsMicroseconds(count int64) int64 { return count * 1e3 } function NsMilliseconds (line 53) | func NsMilliseconds(count int64) int64 { return NsMicroseconds(count * 1... function NsSeconds (line 56) | func NsSeconds(count int64) int64 { return NsMilliseconds(count * 1e3) } function NsMinutes (line 59) | func NsMinutes(count int64) int64 { return NsSeconds(count * 60) } function NsHours (line 62) | func NsHours(count int64) int64 { return NsMinutes(count * 60) } function NsDays (line 65) | func NsDays(count int64) int64 { return NsHours(count * 24) } function NsWeeks (line 68) | func NsWeeks(count int64) int64 { return NsDays(count * 7) } function YearInList (line 71) | func YearInList(time *time.Time, years []int64) bool { function YearInRange (line 82) | func YearInRange(time *time.Time, minYear, maxYear int64) bool { function MonthInList (line 87) | func MonthInList(time *time.Time, months []int) bool { function MonthInRange (line 92) | func MonthInRange(time *time.Time, minMonth, maxMonth int) bool { function DayInList (line 97) | func DayInList(time *time.Time, days []int) bool { function DayInRange (line 102) | func DayInRange(time *time.Time, minDay, maxDay int) bool { function HourInList (line 107) | func HourInList(time *time.Time, hours []int) bool { function HourInRange (line 112) | func HourInRange(time *time.Time, minHour, maxHour int) bool { function MinuteInList (line 117) | func MinuteInList(time *time.Time, minutes []int) bool { function MinuteInRange (line 122) | func MinuteInRange(time *time.Time, minMinute, maxMinute int) bool { function SecondInList (line 127) | func SecondInList(time *time.Time, seconds []int) bool { function SecondInRange (line 132) | func SecondInRange(time *time.Time, minSecond, maxSecond int) bool { function WeekdayInList (line 137) | func WeekdayInList(time *time.Time, weekdays []int) bool { function WeekdayInRange (line 142) | func WeekdayInRange(time *time.Time, minWeekday, maxWeekday int) bool { type CheckFunc (line 151) | type CheckFunc type TaskFunc (line 154) | type TaskFunc type Job (line 157) | type Job struct method checkAndPerform (line 169) | func (job *Job) checkAndPerform(time *time.Time) bool { function NewJob (line 164) | func NewJob(id string, check CheckFunc, task TaskFunc) *Job { constant opJobAdd (line 184) | opJobAdd = iota constant opJobDel (line 185) | opJobDel constant opCrontabStop (line 186) | opCrontabStop type crontabControl (line 190) | type crontabControl struct type Crontab (line 196) | type Crontab struct method Stop (line 216) | func (ctb *Crontab) Stop() { method AddJob (line 221) | func (ctb *Crontab) AddJob(job *Job) { method DeleteJob (line 226) | func (ctb *Crontab) DeleteJob(id string) { method Supervisor (line 231) | func (src *Crontab) Supervisor() *Supervisor { method Recover (line 236) | func (ctb *Crontab) Recover(recoverable Recoverable, err interface{}) { method backend (line 243) | func (ctb *Crontab) backend() { method tick (line 273) | func (ctb *Crontab) tick() { function NewCrontab (line 203) | func NewCrontab() *Crontab { function fieldInList (line 299) | func fieldInList(field int, list []int) bool { function fieldInRange (line 310) | func fieldInRange(field int, min, max int) bool { FILE: eBook/examples/chapter_11/type_interfaces.go type Square (line 8) | type Square struct method Area (line 56) | func (sq *Square) Area() float32 { type Circle (line 12) | type Circle struct method Area (line 60) | func (ci *Circle) Area() float32 { type Shaper (line 16) | type Shaper interface function main (line 20) | func main() { FILE: eBook/examples/chapter_12/cat.go function cat (line 11) | func cat(r *bufio.Reader) { function main (line 22) | func main() { FILE: eBook/examples/chapter_12/cat2.go function cat (line 9) | func cat(f *os.File) { function main (line 27) | func main() { FILE: eBook/examples/chapter_12/echo.go constant Space (line 11) | Space = " " constant Newline (line 12) | Newline = "\n" function main (line 15) | func main() { FILE: eBook/examples/chapter_12/filecopy.go function main (line 10) | func main() { function CopyFile (line 15) | func CopyFile(dstName, srcName string) (written int64, err error) { FILE: eBook/examples/chapter_12/fileinput.go function main (line 10) | func main() { FILE: eBook/examples/chapter_12/fileoutput.go function main (line 9) | func main() { FILE: eBook/examples/chapter_12/filewrite.go function main (line 5) | func main() { FILE: eBook/examples/chapter_12/gob1.go type P (line 11) | type P struct type Q (line 16) | type Q struct function main (line 21) | func main() { FILE: eBook/examples/chapter_12/gob2.go type Address (line 10) | type Address struct type VCard (line 16) | type VCard struct function main (line 25) | func main() { FILE: eBook/examples/chapter_12/gzipped.go function main (line 11) | func main() { FILE: eBook/examples/chapter_12/hash_sha1.go function main (line 11) | func main() { FILE: eBook/examples/chapter_12/io_interfaces.go function main (line 10) | func main() { FILE: eBook/examples/chapter_12/json.go type Address (line 11) | type Address struct type VCard (line 17) | type VCard struct function main (line 24) | func main() { FILE: eBook/examples/chapter_12/json_xml_case.go type thing (line 12) | type thing struct function main (line 17) | func main() { FILE: eBook/examples/chapter_12/os_args.go function main (line 10) | func main() { FILE: eBook/examples/chapter_12/read_file2.go function main (line 11) | func main() { FILE: eBook/examples/chapter_12/read_files.go function main (line 12) | func main() { FILE: eBook/examples/chapter_12/read_write_file1.go function main (line 9) | func main() { FILE: eBook/examples/chapter_12/readinput1.go function main (line 16) | func main() { FILE: eBook/examples/chapter_12/readinput2.go function main (line 14) | func main() { FILE: eBook/examples/chapter_12/switch_input.go function main (line 9) | func main() { FILE: eBook/examples/chapter_12/xml.go function main (line 13) | func main() { FILE: eBook/examples/chapter_13/errors.go function main (line 11) | func main() { FILE: eBook/examples/chapter_13/even/even/even.go function Even (line 4) | func Even(i int) bool { // Exported function function Odd (line 8) | func Odd(i int) bool { // Exported function FILE: eBook/examples/chapter_13/even/even/oddeven_test.go function TestEven (line 6) | func TestEven(t *testing.T) { function TestOdd (line 18) | func TestOdd(t *testing.T) { FILE: eBook/examples/chapter_13/even/even_main/even_main.go function main (line 9) | func main() { FILE: eBook/examples/chapter_13/exec.go function main (line 10) | func main() { FILE: eBook/examples/chapter_13/panic.go function main (line 5) | func main() { FILE: eBook/examples/chapter_13/panic_package.go function main (line 9) | func main() { FILE: eBook/examples/chapter_13/panic_recover.go function badCall (line 8) | func badCall() { function test (line 12) | func test() { function main (line 22) | func main() { FILE: eBook/examples/chapter_13/parse/parse.go type ParseError (line 11) | type ParseError struct method String (line 18) | func (e *ParseError) String() string { function Parse (line 23) | func Parse(input string) (numbers []int, err error) { function fields2numbers (line 39) | func fields2numbers(fields []string) (numbers []int) { FILE: eBook/examples/chapter_14/benchmark_channels.go function main (line 8) | func main() { function BenchmarkChannelSync (line 13) | func BenchmarkChannelSync(b *testing.B) { function BenchmarkChannelBuffered (line 25) | func BenchmarkChannelBuffered(b *testing.B) { FILE: eBook/examples/chapter_14/chaining.go function f (line 10) | func f(left, right chan int) { left <- 1 + <-right } function main (line 12) | func main() { FILE: eBook/examples/chapter_14/channel_block.go function main (line 10) | func main() { function pump (line 20) | func pump(ch chan int) { FILE: eBook/examples/chapter_14/channel_block2.go function main (line 8) | func main() { function pump (line 15) | func pump(ch chan int) { function suck (line 21) | func suck(ch chan int) { FILE: eBook/examples/chapter_14/channel_idiom.go function main (line 8) | func main() { function pump (line 14) | func pump() chan int { function suck (line 24) | func suck(ch chan int) { FILE: eBook/examples/chapter_14/channel_idiom2.go function main (line 8) | func main() { function pump (line 13) | func pump() chan int { function suck (line 23) | func suck(ch chan int) { FILE: eBook/examples/chapter_14/conc_access.go type Person (line 9) | type Person struct method backend (line 21) | func (p *Person) backend() { method SetSalary (line 28) | func (p *Person) SetSalary(sal float64) { method Salary (line 33) | func (p *Person) Salary() float64 { method String (line 39) | func (p *Person) String() string { function NewPerson (line 15) | func NewPerson(name string, salary float64) *Person { function main (line 43) | func main() { FILE: eBook/examples/chapter_14/general_lazy_evalution1.go type Any (line 8) | type Any interface type EvalFunc (line 9) | type EvalFunc function main (line 11) | func main() { function BuildLazyEvaluator (line 24) | func BuildLazyEvaluator(evalFunc EvalFunc, initState Any) func() Any { function BuildLazyIntEvaluator (line 41) | func BuildLazyIntEvaluator(evalFunc EvalFunc, initState Any) func() int { FILE: eBook/examples/chapter_14/goroutine1.go function main (line 8) | func main() { function longWait (line 19) | func longWait() { function shortWait (line 25) | func shortWait() { FILE: eBook/examples/chapter_14/goroutine2.go function main (line 8) | func main() { function sendData (line 17) | func sendData(ch chan string) { function getData (line 25) | func getData(ch chan string) { FILE: eBook/examples/chapter_14/goroutine3.go function main (line 5) | func main() { function sendData (line 11) | func sendData(ch chan string) { function getData (line 20) | func getData(ch chan string) { FILE: eBook/examples/chapter_14/goroutine_select.go function main (line 8) | func main() { function pump1 (line 19) | func pump1(ch chan int) { function pump2 (line 25) | func pump2(ch chan int) { function suck (line 31) | func suck(ch1, ch2 chan int) { FILE: eBook/examples/chapter_14/goroutine_select2.go function main (line 9) | func main() { function pump1 (line 26) | func pump1(ch chan int) { function pump2 (line 32) | func pump2(ch chan int) { function suck (line 38) | func suck(ch1, ch2 chan int) { FILE: eBook/examples/chapter_14/lazy_evaluation.go function integers (line 10) | func integers() chan int { function generateInteger (line 22) | func generateInteger() int { function main (line 26) | func main() { FILE: eBook/examples/chapter_14/max_tasks.go constant MAXREQS (line 3) | MAXREQS = 50 type Request (line 7) | type Request struct function process (line 12) | func process(r *Request) { function handle (line 16) | func handle(r *Request) { function server (line 22) | func server(service chan *Request) { function main (line 29) | func main() { FILE: eBook/examples/chapter_14/multiplex_server.go type Request (line 8) | type Request struct type binOp (line 13) | type binOp function run (line 15) | func run(op binOp, req *Request) { function server (line 19) | func server(op binOp, service chan *Request) { function startServer (line 27) | func startServer(op binOp) chan *Request { function main (line 33) | func main() { FILE: eBook/examples/chapter_14/multiplex_server2.go type Request (line 8) | type Request struct type binOp (line 13) | type binOp function run (line 15) | func run(op binOp, req *Request) { function server (line 19) | func server(op binOp, service chan *Request, quit chan bool) { function startServer (line 30) | func startServer(op binOp) (service chan *Request, quit chan bool) { function main (line 37) | func main() { FILE: eBook/examples/chapter_14/sieve1.go function generate (line 9) | func generate(ch chan int) { function filter (line 17) | func filter(in, out chan int, prime int) { function main (line 27) | func main() { FILE: eBook/examples/chapter_14/sieve2.go function generate (line 12) | func generate() chan int { function filter (line 23) | func filter(in chan int, prime int) chan int { function sieve (line 35) | func sieve() chan int { function main (line 48) | func main() { FILE: eBook/examples/chapter_14/timer_goroutine.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/client.go function main (line 11) | func main() { FILE: eBook/examples/chapter_15/dial.go function main (line 10) | func main() { function checkConnection (line 18) | func checkConnection(conn net.Conn, err error) { FILE: eBook/examples/chapter_15/elaborated_webserver.go type Counter (line 28) | type Counter struct method String (line 68) | func (ctr *Counter) String() string { return fmt.Sprintf("%d", ctr.n) } method ServeHTTP (line 70) | func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) { type Chan (line 33) | type Chan method ServeHTTP (line 117) | func (ch Chan) ServeHTTP(w http.ResponseWriter, req *http.Request) { function main (line 35) | func main() { function Logger (line 55) | func Logger(w http.ResponseWriter, req *http.Request) { function HelloServer (line 61) | func HelloServer(w http.ResponseWriter, req *http.Request) { function FlagServer (line 88) | func FlagServer(w http.ResponseWriter, req *http.Request) { function ArgServer (line 101) | func ArgServer(w http.ResponseWriter, req *http.Request) { function ChanCreate (line 107) | func ChanCreate() Chan { function DateServer (line 122) | func DateServer(rw http.ResponseWriter, req *http.Request) { FILE: eBook/examples/chapter_15/hello_world_webserver.go function HelloServer (line 9) | func HelloServer(w http.ResponseWriter, req *http.Request) { function main (line 14) | func main() { FILE: eBook/examples/chapter_15/http_fetch.go function main (line 11) | func main() { function CheckError (line 19) | func CheckError(err error) { FILE: eBook/examples/chapter_15/http_fetch2.go function main (line 13) | func main() { function checkError (line 27) | func checkError(err error) { FILE: eBook/examples/chapter_15/pipeline1.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/poll_url.go function main (line 15) | func main() { FILE: eBook/examples/chapter_15/predefined_functions.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/robust_webserver.go constant form (line 10) | form = `