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 = `
type HandleFnc (line 15) | type HandleFnc function SimpleServer (line 18) | func SimpleServer(w http.ResponseWriter, request *http.Request) { function FormServer (line 24) | func FormServer(w http.ResponseWriter, request *http.Request) { function main (line 39) | func main() { function logPanics (line 47) | func logPanics(function HandleFnc) HandleFnc { FILE: eBook/examples/chapter_15/rpc/rpc_client.go constant serverAddress (line 18) | serverAddress = "localhost" function main (line 20) | func main() { FILE: eBook/examples/chapter_15/rpc/rpc_objects.go type Args (line 6) | type Args struct method Multiply (line 10) | func (t *Args) Multiply(args *Args, reply *int) net.Error { FILE: eBook/examples/chapter_15/rpc/rpc_server.go function main (line 16) | func main() { FILE: eBook/examples/chapter_15/rpc_updated/rpc_client.go constant serverAddress (line 18) | serverAddress = "localhost" function main (line 20) | func main() { FILE: eBook/examples/chapter_15/rpc_updated/rpc_objects/rpc_objects.go type Args (line 4) | type Args struct method Multiply (line 8) | func (t *Args) Multiply(args *Args, reply *int) error { FILE: eBook/examples/chapter_15/rpc_updated/rpc_server.go function main (line 16) | func main() { FILE: eBook/examples/chapter_15/server.go function main (line 8) | func main() { function doServerStuff (line 27) | func doServerStuff(conn net.Conn) { FILE: eBook/examples/chapter_15/simple_tcp_server.go constant maxRead (line 11) | maxRead = 25 function main (line 13) | func main() { function initServer (line 27) | func initServer(hostAndPort string) *net.TCPListener { function connectionHandler (line 36) | func connectionHandler(conn net.Conn) { function sayHello (line 59) | func sayHello(to net.Conn) { function handleMsg (line 65) | func handleMsg(length int, err error, msg []byte) { function checkError (line 78) | func checkError(error error, info string) { FILE: eBook/examples/chapter_15/simple_tcp_server_v1.go constant maxRead (line 11) | maxRead = 25 function main (line 13) | func main() { function initServer (line 26) | func initServer(hostAndPort string) net.Listener { function connectionHandler (line 34) | func connectionHandler(conn net.Conn) { function sayHello (line 56) | func sayHello(to net.Conn) { function handleMsg (line 61) | func handleMsg(length int, err error, msg []byte) { function checkError (line 73) | func checkError(error error, info string) { FILE: eBook/examples/chapter_15/simple_webserver.go constant form (line 9) | form = ` function SimpleServer (line 15) | func SimpleServer(w http.ResponseWriter, request *http.Request) { function FormServer (line 21) | func FormServer(w http.ResponseWriter, request *http.Request) { function main (line 36) | func main() { FILE: eBook/examples/chapter_15/smtp.go function main (line 10) | func main() { FILE: eBook/examples/chapter_15/smtp_auth.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/socket.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/template_field.go type Person (line 10) | type Person struct function main (line 15) | func main() { FILE: eBook/examples/chapter_15/template_ifelse.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/template_validation.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/template_variables.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/template_with_end.go function main (line 9) | func main() { FILE: eBook/examples/chapter_15/twitter_status.go type Status (line 13) | type Status struct type User (line 17) | type User struct function main (line 23) | func main() { FILE: eBook/examples/chapter_15/websocket_client.go function main (line 10) | func main() { function readFromServer (line 21) | func readFromServer(ws *websocket.Conn) { FILE: eBook/examples/chapter_15/websocket_server.go function server (line 10) | func server(ws *websocket.Conn) { function main (line 23) | func main() { FILE: eBook/examples/chapter_15/wiki/wiki.go constant lenPath (line 11) | lenPath = len("/view/") type Page (line 17) | type Page struct method save (line 84) | func (p *Page) save() error { function init (line 22) | func init() { function main (line 28) | func main() { function makeHandler (line 38) | func makeHandler(fn func(http.ResponseWriter, *http.Request, string)) ht... function viewHandler (line 49) | func viewHandler(w http.ResponseWriter, r *http.Request, title string) { function editHandler (line 58) | func editHandler(w http.ResponseWriter, r *http.Request, title string) { function saveHandler (line 66) | func saveHandler(w http.ResponseWriter, r *http.Request, title string) { function renderTemplate (line 77) | func renderTemplate(w http.ResponseWriter, tmpl string, p *Page) { function load (line 90) | func load(title string) (*Page, error) { FILE: eBook/examples/chapter_15/wiki/wiki_part1.go type Page (line 8) | type Page struct method save (line 13) | func (p *Page) save() error { function load (line 18) | func load(title string) (*Page, error) { function main (line 27) | func main() { FILE: eBook/examples/chapter_15/wiki/wiki_part2.go type Page (line 9) | type Page struct method save (line 14) | func (p *Page) save() error { function load (line 19) | func load(title string) (*Page, error) { constant lenPath (line 28) | lenPath = len("/view/") function viewHandler (line 30) | func viewHandler(w http.ResponseWriter, r *http.Request) { function main (line 36) | func main() { FILE: eBook/examples/chapter_16/closures_goroutines.go function main (line 11) | func main() { FILE: eBook/examples/chapter_16/pointer_interface.go type nexter (line 8) | type nexter interface function nextFew1 (line 12) | func nextFew1(n nexter, num int) []byte { function nextFew2 (line 20) | func nextFew2(n *nexter, num int) []byte { function main (line 28) | func main() { FILE: eBook/examples/chapter_19/goto_v1/key.go function genKey (line 5) | func genKey(n int) string { FILE: eBook/examples/chapter_19/goto_v1/main.go constant AddForm (line 8) | AddForm = ` function main (line 17) | func main() { function Redirect (line 23) | func Redirect(w http.ResponseWriter, r *http.Request) { function Add (line 33) | func Add(w http.ResponseWriter, r *http.Request) { FILE: eBook/examples/chapter_19/goto_v1/store.go type URLStore (line 5) | type URLStore struct method Get (line 14) | func (s *URLStore) Get(key string) string { method Set (line 20) | func (s *URLStore) Set(key, url string) bool { method Count (line 30) | func (s *URLStore) Count() int { method Put (line 36) | func (s *URLStore) Put(url string) string { function NewURLStore (line 10) | func NewURLStore() *URLStore { FILE: eBook/examples/chapter_19/goto_v2/key.go function genKey (line 5) | func genKey(n int) string { FILE: eBook/examples/chapter_19/goto_v2/main.go function main (line 10) | func main() { function Redirect (line 16) | func Redirect(w http.ResponseWriter, r *http.Request) { function Add (line 26) | func Add(w http.ResponseWriter, r *http.Request) { constant AddForm (line 37) | AddForm = ` FILE: eBook/examples/chapter_19/goto_v2/store.go type URLStore (line 11) | type URLStore struct method Get (line 34) | func (s *URLStore) Get(key string) string { method Set (line 40) | func (s *URLStore) Set(key, url string) bool { method Count (line 50) | func (s *URLStore) Count() int { method Put (line 56) | func (s *URLStore) Put(url string) string { method load (line 69) | func (s *URLStore) load() error { method save (line 87) | func (s *URLStore) save(key, url string) error { type record (line 17) | type record struct function NewURLStore (line 21) | func NewURLStore(filename string) *URLStore { FILE: eBook/examples/chapter_19/goto_v3/key.go function genKey (line 5) | func genKey(n int) string { FILE: eBook/examples/chapter_19/goto_v3/main.go function main (line 17) | func main() { function Redirect (line 25) | func Redirect(w http.ResponseWriter, r *http.Request) { function Add (line 35) | func Add(w http.ResponseWriter, r *http.Request) { constant AddForm (line 45) | AddForm = ` FILE: eBook/examples/chapter_19/goto_v3/store.go constant saveQueueLength (line 12) | saveQueueLength = 1000 type URLStore (line 14) | type URLStore struct method Get (line 36) | func (s *URLStore) Get(key string) string { method Set (line 42) | func (s *URLStore) Set(key, url string) bool { method Count (line 52) | func (s *URLStore) Count() int { method Put (line 58) | func (s *URLStore) Put(url string) string { method load (line 69) | func (s *URLStore) load(filename string) error { method saveLoop (line 94) | func (s *URLStore) saveLoop(filename string) { type record (line 20) | type record struct function NewURLStore (line 24) | func NewURLStore(filename string) *URLStore { FILE: eBook/examples/chapter_19/goto_v4/key.go function genKey (line 5) | func genKey(n int) string { FILE: eBook/examples/chapter_19/goto_v4/main.go function main (line 17) | func main() { function Redirect (line 25) | func Redirect(w http.ResponseWriter, r *http.Request) { function Add (line 35) | func Add(w http.ResponseWriter, r *http.Request) { constant AddForm (line 45) | AddForm = ` FILE: eBook/examples/chapter_19/goto_v4/store.go constant saveQueueLength (line 11) | saveQueueLength = 1000 type URLStore (line 13) | type URLStore struct method Get (line 35) | func (s *URLStore) Get(key string) string { method Set (line 41) | func (s *URLStore) Set(key, url string) bool { method Count (line 51) | func (s *URLStore) Count() int { method Put (line 57) | func (s *URLStore) Put(url string) string { method load (line 68) | func (s *URLStore) load(filename string) error { method saveLoop (line 90) | func (s *URLStore) saveLoop(filename string) { type record (line 19) | type record struct function NewURLStore (line 23) | func NewURLStore(filename string) *URLStore { FILE: eBook/examples/chapter_19/goto_v5/key.go function genKey (line 5) | func genKey(n int) string { FILE: eBook/examples/chapter_19/goto_v5/main.go function main (line 20) | func main() { function Redirect (line 37) | func Redirect(w http.ResponseWriter, r *http.Request) { function Add (line 51) | func Add(w http.ResponseWriter, r *http.Request) { constant AddForm (line 65) | AddForm = ` FILE: eBook/examples/chapter_19/goto_v5/store.go constant saveQueueLength (line 13) | saveQueueLength = 1000 type Store (line 15) | type Store interface type ProxyStore (line 20) | type ProxyStore struct method Get (line 128) | func (s *ProxyStore) Get(key, url *string) error { method Put (line 140) | func (s *ProxyStore) Put(url, key *string) error { type URLStore (line 25) | type URLStore struct method Get (line 47) | func (s *URLStore) Get(key, url *string) error { method Set (line 57) | func (s *URLStore) Set(key, url *string) error { method count (line 67) | func (s *URLStore) count() int { method Put (line 73) | func (s *URLStore) Put(url, key *string) error { method load (line 86) | func (s *URLStore) load(filename string) error { method saveLoop (line 105) | func (s *URLStore) saveLoop(filename string) { type record (line 31) | type record struct function NewURLStore (line 35) | func NewURLStore(filename string) *URLStore { function NewProxyStore (line 119) | func NewProxyStore(addr string) *ProxyStore { FILE: eBook/examples/chapter_2/hello_world1.go function main (line 4) | func main() { FILE: eBook/examples/chapter_2/version.go function main (line 8) | func main() { FILE: eBook/examples/chapter_20/helloapp/hello/helloworld2_version1.go function init (line 8) | func init() { function handler (line 12) | func handler(w http.ResponseWriter, r *http.Request) { FILE: eBook/examples/chapter_20/helloapp/hello/helloworld2_version2.go function init (line 10) | func init() { function handler (line 14) | func handler(w http.ResponseWriter, r *http.Request) { FILE: eBook/examples/chapter_20/helloapp/hello/helloworld2_version3.go constant guestbookForm (line 9) | guestbookForm = ` constant signTemplateHTML (line 19) | signTemplateHTML = ` function init (line 30) | func init() { function root (line 35) | func root(w http.ResponseWriter, r *http.Request) { function sign (line 40) | func sign(w http.ResponseWriter, r *http.Request) { FILE: eBook/examples/chapter_20/helloapp/hello/helloworld2_version4.go constant guestbookTemplateHTML (line 12) | guestbookTemplateHTML = ` type Greeting (line 34) | type Greeting struct function init (line 40) | func init() { function root (line 45) | func root(w http.ResponseWriter, r *http.Request) { function sign (line 58) | func sign(w http.ResponseWriter, r *http.Request) { FILE: eBook/examples/chapter_20/helloworld.go function init (line 9) | func init() { function handle (line 13) | func handle(w http.ResponseWriter, r *http.Request) { FILE: eBook/examples/chapter_3/CandGo/c1.go function Random (line 7) | func Random() int { function Seed (line 11) | func Seed(i int) { FILE: eBook/examples/chapter_3/CandGo/c2.go function Print (line 9) | func Print(s string) { FILE: eBook/examples/chapter_4/alias.go function main (line 5) | func main() { FILE: eBook/examples/chapter_4/casting.go function main (line 5) | func main() { FILE: eBook/examples/chapter_4/char.go function main (line 8) | func main() { FILE: eBook/examples/chapter_4/count_substring.go function main (line 8) | func main() { FILE: eBook/examples/chapter_4/function_calls_function.go function main (line 5) | func main() { function f1 (line 10) | func f1() { function f2 (line 15) | func f2() { FILE: eBook/examples/chapter_4/global_scope.go function main (line 5) | func main() { function n (line 10) | func n() { function m (line 13) | func m() { FILE: eBook/examples/chapter_4/goos.go function main (line 9) | func main() { FILE: eBook/examples/chapter_4/gotemplate.go constant c (line 7) | c = "C" type T (line 11) | type T struct method Method1 (line 24) | func (t T) Method1() { function init (line 13) | func init() { function main (line 17) | func main() { function Func1 (line 28) | func Func1() { // exported function Func1 FILE: eBook/examples/chapter_4/hello_world.go function main (line 5) | func main() { FILE: eBook/examples/chapter_4/hello_world2.go function main (line 5) | func main() { FILE: eBook/examples/chapter_4/index_in_string.go function main (line 8) | func main() { FILE: eBook/examples/chapter_4/init.go function init (line 7) | func init() { FILE: eBook/examples/chapter_4/local_scope.go function main (line 5) | func main() { function n (line 10) | func n() { print(a) } function m (line 11) | func m() { FILE: eBook/examples/chapter_4/pointer.go function main (line 5) | func main() { FILE: eBook/examples/chapter_4/presuffix.go function main (line 8) | func main() { FILE: eBook/examples/chapter_4/random.go function main (line 9) | func main() { FILE: eBook/examples/chapter_4/repeat_string.go function main (line 8) | func main() { FILE: eBook/examples/chapter_4/string_conversion.go function main (line 8) | func main() { FILE: eBook/examples/chapter_4/string_pointer.go function main (line 5) | func main() { FILE: eBook/examples/chapter_4/strings_splitjoin.go function main (line 9) | func main() { FILE: eBook/examples/chapter_4/testcrash.go function main (line 5) | func main() { FILE: eBook/examples/chapter_4/time.go function main (line 10) | func main() { FILE: eBook/examples/chapter_4/toupper_lower.go function main (line 8) | func main() { FILE: eBook/examples/chapter_4/type.go type TZ (line 5) | type TZ function main (line 7) | func main() { FILE: eBook/examples/chapter_4/type_mixing.go function main (line 3) | func main() { FILE: eBook/examples/chapter_4/use_init.go function main (line 10) | func main() { FILE: eBook/examples/chapter_4/user_init.go function main (line 10) | func main() { FILE: eBook/examples/chapter_5/booleans.go function main (line 5) | func main() { FILE: eBook/examples/chapter_5/for1.go function main (line 5) | func main() { FILE: eBook/examples/chapter_5/for2.go function main (line 5) | func main() { FILE: eBook/examples/chapter_5/for3.go function main (line 5) | func main() { FILE: eBook/examples/chapter_5/for4.go function main (line 3) | func main() { FILE: eBook/examples/chapter_5/for5.go function main (line 3) | func main() { FILE: eBook/examples/chapter_5/for6.go function main (line 5) | func main() { FILE: eBook/examples/chapter_5/for_string.go function main (line 6) | func main() { FILE: eBook/examples/chapter_5/goto.go function main (line 3) | func main() { FILE: eBook/examples/chapter_5/goto2.go function main (line 6) | func main() { FILE: eBook/examples/chapter_5/ifelse.go function main (line 5) | func main() { FILE: eBook/examples/chapter_5/range_string.go function main (line 5) | func main() { FILE: eBook/examples/chapter_5/string_conversion2.go function main (line 8) | func main() { FILE: eBook/examples/chapter_5/switch1.go function main (line 5) | func main() { FILE: eBook/examples/chapter_5/switch2.go function main (line 5) | func main() { FILE: eBook/examples/chapter_6/blank_identifier.go function main (line 5) | func main() { function ThreeValues (line 12) | func ThreeValues() (int, int, float32) { FILE: eBook/examples/chapter_6/defer.go function main (line 5) | func main() { function Function1 (line 9) | func Function1() { function Function2 (line 15) | func Function2() { FILE: eBook/examples/chapter_6/defer_dbconn.go function main (line 6) | func main() { function connectToDB (line 10) | func connectToDB() { function disconnectFromDB (line 14) | func disconnectFromDB() { function doDBOperations (line 18) | func doDBOperations() { FILE: eBook/examples/chapter_6/defer_logvalues.go function func1 (line 9) | func func1(s string) (n int, err error) { function main (line 16) | func main() { FILE: eBook/examples/chapter_6/defer_tracing.go function trace (line 5) | func trace(s string) { fmt.Println("entering:", s) } function untrace (line 6) | func untrace(s string) { fmt.Println("leaving:", s) } function a (line 8) | func a() { function b (line 14) | func b() { function main (line 20) | func main() { FILE: eBook/examples/chapter_6/defer_tracing2.go function trace (line 5) | func trace(s string) string { function un (line 9) | func un(s string) { function a (line 13) | func a() { function b (line 18) | func b() { function main (line 23) | func main() { FILE: eBook/examples/chapter_6/fibonacci.go function main (line 8) | func main() { function fibonacci (line 20) | func fibonacci(n int) (res int) { FILE: eBook/examples/chapter_6/fibonacci_memoization.go constant LIM (line 9) | LIM = 41 function main (line 13) | func main() { function fibonacci (line 25) | func fibonacci(n int) (res uint64) { FILE: eBook/examples/chapter_6/filter_factory.go type flt (line 6) | type flt type slice_split (line 7) | type slice_split function isOdd (line 9) | func isOdd(integer int) bool { function isBiggerThan4 (line 16) | func isBiggerThan4(integer int) bool { function filter_factory (line 23) | func filter_factory(f flt) slice_split { function main (line 36) | func main() { FILE: eBook/examples/chapter_6/function_closure.go function main (line 5) | func main() { function Adder (line 12) | func Adder() func(int) int { FILE: eBook/examples/chapter_6/function_filter.go type flt (line 6) | type flt function isOdd (line 12) | func isOdd(n int) bool { function isEven (line 20) | func isEven(n int) bool { function filter (line 27) | func filter(sl []int, f flt) []int { function main (line 37) | func main() { FILE: eBook/examples/chapter_6/function_literal.go function main (line 5) | func main() { function f (line 9) | func f() { FILE: eBook/examples/chapter_6/function_parameter.go function main (line 8) | func main() { function Add (line 12) | func Add(a, b int) { function callback (line 16) | func callback(y int, f func(int, int)) { FILE: eBook/examples/chapter_6/function_return.go function main (line 5) | func main() { function Add2 (line 14) | func Add2() func(b int) int { function Adder (line 20) | func Adder(a int) func(b int) int { FILE: eBook/examples/chapter_6/greeting.go function main (line 3) | func main() { function greeting (line 9) | func greeting() { FILE: eBook/examples/chapter_6/minmax.go function main (line 5) | func main() { function MinMax (line 11) | func MinMax(a int, b int) (min int, max int) { FILE: eBook/examples/chapter_6/multiple_return.go function main (line 8) | func main() { function PrintValues (line 15) | func PrintValues() { function getX2AndX3 (line 19) | func getX2AndX3(input int) (int, int) { function getX2AndX3_2 (line 23) | func getX2AndX3_2(input int) (x2 int, x3 int) { FILE: eBook/examples/chapter_6/mut_recurs.go function main (line 8) | func main() { function even (line 14) | func even(nr int) bool { function odd (line 21) | func odd(nr int) bool { function RevSign (line 28) | func RevSign(nr int) int { FILE: eBook/examples/chapter_6/return_defer.go function f (line 8) | func f() (ret int) { function main (line 15) | func main() { FILE: eBook/examples/chapter_6/side_effect.go function Multiply (line 8) | func Multiply(a, b int, reply *int) { function main (line 12) | func main() { FILE: eBook/examples/chapter_6/simple_function.go function main (line 5) | func main() { function MultiPly3Nums (line 11) | func MultiPly3Nums(a int, b int, c int) int { FILE: eBook/examples/chapter_6/varnumpar.go function main (line 5) | func main() { function Min (line 13) | func Min(s ...int) int { FILE: eBook/examples/chapter_7/array_literals.go function main (line 5) | func main() { FILE: eBook/examples/chapter_7/array_slices.go function main (line 5) | func main() { FILE: eBook/examples/chapter_7/array_sum.go function main (line 5) | func main() { function Sum (line 11) | func Sum(a *[3]float64) (sum float64) { FILE: eBook/examples/chapter_7/copy_append_slice.go function main (line 5) | func main() { FILE: eBook/examples/chapter_7/for_arrays.go function main (line 5) | func main() { FILE: eBook/examples/chapter_7/for_string.go function main (line 5) | func main() { FILE: eBook/examples/chapter_7/make_slice.go function main (line 5) | func main() { FILE: eBook/examples/chapter_7/multidim_array.go constant WIDTH (line 7) | WIDTH = 1920 constant HEIGHT (line 8) | HEIGHT = 1080 type pixel (line 13) | type pixel function main (line 17) | func main() { FILE: eBook/examples/chapter_7/pointer_array.go function f (line 5) | func f(a [3]int) { fmt.Println(a) } function fp (line 6) | func fp(a *[3]int) { fmt.Println(a) } function main (line 8) | func main() { FILE: eBook/examples/chapter_7/pointer_array2.go function fp (line 5) | func fp(a *[3]int) { fmt.Println(a) } function main (line 7) | func main() { FILE: eBook/examples/chapter_7/reslicing.go function main (line 5) | func main() { FILE: eBook/examples/chapter_7/slices_forrange.go function main (line 5) | func main() { FILE: eBook/examples/chapter_7/slices_forrange2.go function main (line 5) | func main() { FILE: eBook/examples/chapter_8/invert_map.go function main (line 13) | func main() { FILE: eBook/examples/chapter_8/make_maps.go function main (line 5) | func main() { FILE: eBook/examples/chapter_8/map_func.go function main (line 6) | func main() { FILE: eBook/examples/chapter_8/map_testelement.go function main (line 5) | func main() { FILE: eBook/examples/chapter_8/maps_forrange.go function main (line 5) | func main() { FILE: eBook/examples/chapter_8/maps_forrange2.go function main (line 5) | func main() { FILE: eBook/examples/chapter_8/slice_maps.go function main (line 8) | func main() { FILE: eBook/examples/chapter_8/sort_map.go function main (line 15) | func main() { FILE: eBook/examples/chapter_9/big.go function main (line 10) | func main() { FILE: eBook/examples/chapter_9/book/book_main/main.go function main (line 8) | func main() { FILE: eBook/examples/chapter_9/book/pack1/pack1.go function ReturnStr (line 6) | func ReturnStr() string { FILE: eBook/examples/chapter_9/book/package_mytest.go function main (line 8) | func main() { FILE: eBook/examples/chapter_9/doc_example/Package sort - The Go Programming Language_files/godocs.js function bindEvent (line 14) | function bindEvent(el, e, fn) { function godocs_onload (line 23) | function godocs_onload() { function godocs_bindSearchEvents (line 29) | function godocs_bindSearchEvents() { function godocs_generateTOC (line 58) | function godocs_generateTOC() { function godocs_nodeToText (line 148) | function godocs_nodeToText(node) { function godocs_addTopLinks (line 169) | function godocs_addTopLinks() { FILE: eBook/examples/chapter_9/doc_example/sort.go type Interface (line 9) | type Interface interface function Sort (line 16) | func Sort(data Interface) { function IsSorted (line 25) | func IsSorted(data Interface) bool { type IntArray (line 36) | type IntArray method Len (line 38) | func (p IntArray) Len() int { return len(p) } method Less (line 39) | func (p IntArray) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 40) | func (p IntArray) Swap(i, j int) { p[i], p[j] = p[j], p[i] } type Float64Array (line 42) | type Float64Array method Len (line 44) | func (p Float64Array) Len() int { return len(p) } method Less (line 45) | func (p Float64Array) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 46) | func (p Float64Array) Swap(i, j int) { p[i], p[j] = p[j], p[i] } type StringArray (line 48) | type StringArray method Len (line 50) | func (p StringArray) Len() int { return len(p) } method Less (line 51) | func (p StringArray) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 52) | func (p StringArray) Swap(i, j int) { p[i], p[j] = p[j], p[i] } function SortInts (line 55) | func SortInts(a []int) { Sort(IntArray(a)) } function SortFloat64s (line 56) | func SortFloat64s(a []float64) { Sort(Float64Array(a)) } function SortStrings (line 57) | func SortStrings(a []string) { Sort(StringArray(a)) } function IntsAreSorted (line 59) | func IntsAreSorted(a []int) bool { return IsSorted(IntArray(a)) } function Float64sAreSorted (line 60) | func Float64sAreSorted(a []float64) bool { return IsSorted(Float64Array(... function StringsAreSorted (line 61) | func StringsAreSorted(a []string) bool { return IsSorted(StringArray(a... FILE: eBook/examples/chapter_9/doc_example/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_9/pattern.go function main (line 10) | func main() { FILE: eBook/examples/chapter_9/reboot.go constant LINUX_REBOOT_MAGIC1 (line 12) | LINUX_REBOOT_MAGIC1 uintptr = 0xfee1dead constant LINUX_REBOOT_MAGIC2 (line 13) | LINUX_REBOOT_MAGIC2 uintptr = 672274793 constant LINUX_REBOOT_CMD_RESTART (line 14) | LINUX_REBOOT_CMD_RESTART uintptr = 0x1234567 function main (line 16) | func main() { FILE: eBook/examples/chapter_9/uc.go function UpperCase (line 5) | func UpperCase(str string) string { FILE: eBook/examples/chapter_9/uc_test.go type ucTest (line 5) | type ucTest struct function TestUC (line 15) | func TestUC(t *testing.T) { FILE: eBook/examples/chapter_9/ucmain.go function main (line 8) | func main() { FILE: eBook/examples/chapter_9/uppercase/uc/uc.go function UpperCase (line 6) | func UpperCase(str string) string { FILE: eBook/examples/chapter_9/uppercase/uc/uc_test.go type ucTest (line 6) | type ucTest struct function TestUC (line 16) | func TestUC(t *testing.T) { FILE: eBook/examples/chapter_9/uppercase/uc_main/ucmain.go function main (line 9) | func main() { FILE: eBook/examples/chapter_9/use_urlshortener.go function main (line 11) | func main() { function root (line 35) | func root(w http.ResponseWriter, r *http.Request) { function short (line 39) | func short(w http.ResponseWriter, r *http.Request) { function long (line 46) | func long(w http.ResponseWriter, r *http.Request) { FILE: eBook/examples/server.go function main (line 8) | func main() { function doServerStuff (line 27) | func doServerStuff(conn net.Conn) { FILE: eBook/exercises/chapter_10/anonymous_struct.go type C (line 5) | type C struct function main (line 11) | func main() { FILE: eBook/exercises/chapter_10/celsius.go type Celsius (line 9) | type Celsius method String (line 11) | func (c Celsius) String() string { function main (line 15) | func main() { FILE: eBook/exercises/chapter_10/days.go type Day (line 5) | type Day method String (line 19) | func (day Day) String() string { constant MO (line 8) | MO Day = iota constant TU (line 9) | TU constant WE (line 10) | WE constant TH (line 11) | TH constant FR (line 12) | FR constant SA (line 13) | SA constant SU (line 14) | SU function main (line 23) | func main() { FILE: eBook/exercises/chapter_10/employee_salary.go type employee (line 7) | type employee struct method giveRaise (line 13) | func (this *employee) giveRaise(pct float32) { function main (line 17) | func main() { FILE: eBook/exercises/chapter_10/inherit_methods.go type Base (line 5) | type Base struct method Id (line 9) | func (b *Base) Id() string { method SetId (line 13) | func (b *Base) SetId(id string) { type Person (line 17) | type Person struct type Employee (line 23) | type Employee struct function main (line 28) | func main() { FILE: eBook/exercises/chapter_10/inheritance_car.go type Engine (line 8) | type Engine interface type Car (line 13) | type Car struct method numberOfWheels (line 19) | func (car Car) numberOfWheels() int { method Start (line 32) | func (c *Car) Start() { method Stop (line 36) | func (c *Car) Stop() { method GoToWorkIn (line 40) | func (c *Car) GoToWorkIn() { type Mercedes (line 23) | type Mercedes struct method sayHiToMerkel (line 28) | func (m *Mercedes) sayHiToMerkel() { function main (line 48) | func main() { FILE: eBook/exercises/chapter_10/iteration_list.go method Iter (line 12) | func (p *list.List) Iter() { function main (line 15) | func main() { FILE: eBook/exercises/chapter_10/magic.go type Base (line 6) | type Base struct method Magic (line 8) | func (Base) Magic() { fmt.Print("base magic ") } method MoreMagic (line 10) | func (self Base) MoreMagic() { type Voodoo (line 15) | type Voodoo struct method Magic (line 19) | func (Voodoo) Magic() { fmt.Println("voodoo magic") } function main (line 21) | func main() { FILE: eBook/exercises/chapter_10/main_stack.go function main (line 9) | func main() { FILE: eBook/exercises/chapter_10/personex1.go type Person (line 8) | type Person struct function upPerson (line 13) | func upPerson(p Person) { function main (line 18) | func main() { FILE: eBook/exercises/chapter_10/point.go type Point (line 8) | type Point struct type Point3 (line 12) | type Point3 struct type Polar (line 16) | type Polar struct function Abs (line 20) | func Abs(p *Point) float64 { function Scale (line 24) | func Scale(p *Point, s float64) (q Point) { function main (line 30) | func main() { FILE: eBook/exercises/chapter_10/point_methods.go type Point (line 9) | type Point struct method Scale (line 13) | func (p *Point) Scale(s float64) { method Abs (line 18) | func (p *Point) Abs() float64 { type Point3 (line 22) | type Point3 struct method Abs (line 26) | func (p *Point3) Abs() float64 { type Polar (line 30) | type Polar struct method Abs (line 34) | func (p Polar) Abs() float64 { return p.R } function main (line 36) | func main() { FILE: eBook/exercises/chapter_10/rectangle.go type Rectangle (line 6) | type Rectangle struct method Area (line 10) | func (r *Rectangle) Area() int { method Perimeter (line 14) | func (r *Rectangle) Perimeter() int { function main (line 18) | func main() { FILE: eBook/exercises/chapter_10/stack/stack_struct.go constant LIMIT (line 6) | LIMIT = 10 type Stack (line 8) | type Stack struct method Push (line 13) | func (st *Stack) Push(n int) { method Pop (line 21) | func (st *Stack) Pop() int { method String (line 26) | func (st Stack) String() string { FILE: eBook/exercises/chapter_10/stack_arr.go constant LIMIT (line 8) | LIMIT = 4 type Stack (line 10) | type Stack method Push (line 38) | func (st *Stack) Push(n int) { method Pop (line 48) | func (st *Stack) Pop() int { method String (line 59) | func (st Stack) String() string { function main (line 12) | func main() { FILE: eBook/exercises/chapter_10/stack_struct.go constant LIMIT (line 9) | LIMIT = 4 type Stack (line 11) | type Stack struct method Push (line 41) | func (st *Stack) Push(n int) { method Pop (line 49) | func (st *Stack) Pop() int { method String (line 54) | func (st Stack) String() string { function main (line 16) | func main() { FILE: eBook/exercises/chapter_10/timezones.go type TZ (line 9) | type TZ method String (line 23) | func (tz TZ) String() string { // Method on TZ (not ptr) constant HOUR (line 12) | HOUR TZ = 60 * 60 constant UTC (line 13) | UTC TZ = 0 * HOUR constant EST (line 14) | EST TZ = -5 * HOUR constant CST (line 15) | CST TZ = -6 * HOUR function main (line 30) | func main() { FILE: eBook/exercises/chapter_10/type_string.go type T (line 5) | type T struct method String (line 16) | func (t *T) String() string { function main (line 11) | func main() { FILE: eBook/exercises/chapter_10/vcard.go type Address (line 8) | type Address struct type VCard (line 18) | type VCard struct function main (line 27) | func main() { FILE: eBook/exercises/chapter_11/float_sort.go type Sorter (line 9) | type Sorter interface function Sort (line 15) | func Sort(data Sorter) { function IsSorted (line 25) | func IsSorted(data Sorter) bool { type Float64Array (line 35) | type Float64Array method Len (line 37) | func (p Float64Array) Len() int { return len(p) } method Less (line 38) | func (p Float64Array) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 39) | func (p Float64Array) Swap(i, j int) { p[i], p[j] = p[j], p[i] } method Fill (line 45) | func (p Float64Array) Fill(n int) { method List (line 52) | func (p Float64Array) List() string { method String (line 64) | func (p Float64Array) String() string { function NewFloat64Array (line 41) | func NewFloat64Array() Float64Array { FILE: eBook/exercises/chapter_11/float_sortmain.go function main (line 8) | func main() { FILE: eBook/exercises/chapter_11/interface_nil.go type Any (line 6) | type Any interface type Anything (line 7) | type Anything struct function main (line 9) | func main() { function getAny (line 27) | func getAny() Any { function getAnything (line 31) | func getAnything() *Anything { FILE: eBook/exercises/chapter_11/interface_poly3.go type Shaper (line 9) | type Shaper interface type Shape (line 13) | type Shape struct method Area (line 15) | func (sh Shape) Area() float32 { type Square (line 19) | type Square struct method Area (line 24) | func (sq *Square) Area() float32 { type Rectangle (line 28) | type Rectangle struct method Area (line 33) | func (r *Rectangle) Area() float32 { type Circle (line 37) | type Circle struct method Area (line 42) | func (c *Circle) Area() float32 { function main (line 46) | func main() { FILE: eBook/exercises/chapter_11/interfaces_ext.go type Square (line 5) | type Square struct method Area (line 42) | func (sq *Square) Area() float32 { method Perimeter (line 46) | func (sq *Square) Perimeter() float32 { type Triangle (line 9) | type Triangle struct method Area (line 50) | func (tr *Triangle) Area() float32 { type AreaInterface (line 14) | type AreaInterface interface type PeriInterface (line 18) | type PeriInterface interface function main (line 22) | func main() { FILE: eBook/exercises/chapter_11/interfaces_poly2.go type Shaper (line 9) | type Shaper interface type Square (line 13) | type Square struct method Area (line 17) | func (sq *Square) Area() float32 { type Rectangle (line 21) | type Rectangle struct method Area (line 25) | func (r Rectangle) Area() float32 { type Circle (line 29) | type Circle struct method Area (line 33) | func (c *Circle) Area() float32 { function main (line 37) | func main() { FILE: eBook/exercises/chapter_11/main_stack.go function main (line 11) | func main() { FILE: eBook/exercises/chapter_11/main_stack_v2.go function main (line 9) | func main() { FILE: eBook/exercises/chapter_11/map_function_interface.go type obj (line 5) | type obj interface function main (line 7) | func main() { function mapFunc (line 33) | func mapFunc(mf func(obj) obj, list []obj) []obj { FILE: eBook/exercises/chapter_11/map_function_interface_var.go type obj (line 5) | type obj interface function main (line 7) | func main() { function mapFunc (line 30) | func mapFunc(mf func(obj) obj, list ...obj) []obj { FILE: eBook/exercises/chapter_11/min_interface.go type Miner (line 4) | type Miner interface function Min (line 11) | func Min(data Miner) interface{} { type IntArray (line 23) | type IntArray method Len (line 25) | func (p IntArray) Len() int { return len(p) } method ElemIx (line 26) | func (p IntArray) ElemIx(ix int) interface{} { return p[ix] } method Less (line 27) | func (p IntArray) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 28) | func (p IntArray) Swap(i, j int) { p[i], p[j] = p[j], p[i] } type StringArray (line 30) | type StringArray method Len (line 32) | func (p StringArray) Len() int { return len(p) } method ElemIx (line 33) | func (p StringArray) ElemIx(ix int) interface{} { return p[ix] } method Less (line 34) | func (p StringArray) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 35) | func (p StringArray) Swap(i, j int) { p[i], p[j] = p[j], p... FILE: eBook/exercises/chapter_11/minmain.go function ints (line 9) | func ints() { function strings (line 16) | func strings() { function main (line 23) | func main() { FILE: eBook/exercises/chapter_11/point_interfaces.go type Magnitude (line 9) | type Magnitude interface type Point (line 15) | type Point struct method Scale (line 19) | func (p *Point) Scale(s float64) { method Abs (line 24) | func (p *Point) Abs() float64 { type Point3 (line 28) | type Point3 struct method Abs (line 32) | func (p *Point3) Abs() float64 { type Polar (line 36) | type Polar struct method Abs (line 40) | func (p Polar) Abs() float64 { return p.R } function main (line 42) | func main() { FILE: eBook/exercises/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/exercises/chapter_11/simple_interface.go type Simpler (line 8) | type Simpler interface type Simple (line 13) | type Simple struct method Get (line 17) | func (p *Simple) Get() int { method Put (line 21) | func (p *Simple) Put(u int) { function fI (line 25) | func fI(it Simpler) int { function main (line 30) | func main() { FILE: eBook/exercises/chapter_11/simple_interface2.go type Simpler (line 8) | type Simpler interface type Simple (line 13) | type Simple struct method Get (line 17) | func (p *Simple) Get() int { method Set (line 21) | func (p *Simple) Set(u int) { type RSimple (line 25) | type RSimple struct method Get (line 30) | func (p *RSimple) Get() int { method Set (line 34) | func (p *RSimple) Set(u int) { function fI (line 38) | func fI(it Simpler) int { function main (line 52) | func main() { FILE: eBook/exercises/chapter_11/simple_interface3.go type Simpler (line 8) | type Simpler interface type Simple (line 13) | type Simple struct method Get (line 17) | func (p *Simple) Get() int { method Set (line 21) | func (p *Simple) Set(u int) { type RSimple (line 25) | type RSimple struct method Get (line 30) | func (p *RSimple) Get() int { method Set (line 34) | func (p *RSimple) Set(u int) { function fI (line 38) | func fI(it Simpler) int { function gI (line 52) | func gI(any interface{}) int { function main (line 65) | func main() { FILE: eBook/exercises/chapter_11/sort/sort.go type Sorter (line 6) | type Sorter interface function Sort (line 22) | func Sort(data Sorter) { function IsSorted (line 32) | func IsSorted(data Sorter) bool { type IntArray (line 43) | type IntArray method Len (line 45) | func (p IntArray) Len() int { return len(p) } method Less (line 46) | func (p IntArray) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 47) | func (p IntArray) Swap(i, j int) { p[i], p[j] = p[j], p[i] } type StringArray (line 49) | type StringArray method Len (line 51) | func (p StringArray) Len() int { return len(p) } method Less (line 52) | func (p StringArray) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 53) | func (p StringArray) Swap(i, j int) { p[i], p[j] = p[j], p[i] } function SortInts (line 56) | func SortInts(a []int) { Sort(IntArray(a)) } function SortStrings (line 57) | func SortStrings(a []string) { Sort(StringArray(a)) } function IntsAreSorted (line 59) | func IntsAreSorted(a []int) bool { return IsSorted(IntArray(a)) } function StringsAreSorted (line 60) | func StringsAreSorted(a []string) bool { return IsSorted(StringArray(a)) } FILE: eBook/exercises/chapter_11/sort_persons.go type Person (line 9) | type Person struct type Persons (line 14) | type Persons method Len (line 16) | func (p Persons) Len() int { return len(p) } method Less (line 18) | func (p Persons) Less(i, j int) bool { method Swap (line 24) | func (p Persons) Swap(i, j int) { function main (line 28) | func main() { FILE: eBook/exercises/chapter_11/stack/stack_general.go type Stack (line 6) | type Stack method Len (line 8) | func (stack Stack) Len() int { method Cap (line 12) | func (stack Stack) Cap() int { method IsEmpty (line 16) | func (stack Stack) IsEmpty() bool { method Push (line 20) | func (stack *Stack) Push(e interface{}) { method Top (line 24) | func (stack Stack) Top() (interface{}, error) { method Pop (line 31) | func (stack *Stack) Pop() (interface{}, error) { FILE: eBook/exercises/chapter_11/stack/stack_general_v2.go type Stack (line 6) | type Stack struct method Push (line 11) | func (s *Stack) Push(x interface{}) { method Pop (line 17) | func (s *Stack) Pop() interface{} { method Size (line 26) | func (s *Stack) Size() int { FILE: eBook/exercises/chapter_12/calculator.go function main (line 14) | func main() { FILE: eBook/exercises/chapter_12/cat_numbered.go function cat (line 13) | func cat(r *bufio.Reader) { function main (line 30) | func main() { FILE: eBook/exercises/chapter_12/degob.go type Address (line 12) | type Address struct type VCard (line 18) | type VCard struct function main (line 28) | func main() { FILE: eBook/exercises/chapter_12/hash_md5.go function main (line 10) | func main() { FILE: eBook/exercises/chapter_12/hello_who.go function main (line 10) | func main(){ FILE: eBook/exercises/chapter_12/read_csv.go type Book (line 14) | type Book struct function main (line 20) | func main() { FILE: eBook/exercises/chapter_12/remove_3till5char.go function main (line 11) | func main() { FILE: eBook/exercises/chapter_12/stack/stack_struct.go constant LIMIT (line 6) | LIMIT = 10 type Stack (line 8) | type Stack struct method Push (line 13) | func (st *Stack) Push(n int) { method Pop (line 21) | func (st *Stack) Pop() int { method String (line 26) | func (st Stack) String() string { FILE: eBook/exercises/chapter_12/wiki_part1.go type Page (line 9) | type Page struct method save (line 14) | func (this *Page) save() (err error) { method load (line 18) | func (this *Page) load(title string) (err error) { function main (line 24) | func main() { FILE: eBook/exercises/chapter_12/word_letter_count.go function main (line 13) | func main() { function Counters (line 33) | func Counters(input string) { FILE: eBook/exercises/chapter_13/panic_defer.go function main (line 6) | func main() { function f (line 11) | func f() { function g (line 22) | func g(i int) { FILE: eBook/exercises/chapter_13/panic_defer_convint.go function main (line 9) | func main() { function ConvertInt64ToInt (line 25) | func ConvertInt64ToInt(l int64) int { function IntFromInt64 (line 32) | func IntFromInt64(l int64) (i int, err error) { FILE: eBook/exercises/chapter_13/recover_divbyzero.go function badCall (line 8) | func badCall() { function test (line 14) | func test() { function main (line 25) | func main() { FILE: eBook/exercises/chapter_13/string_reverse.go function Reverse (line 4) | func Reverse(s string) string { FILE: eBook/exercises/chapter_13/string_reverse_test.go type ReverseTest (line 7) | type ReverseTest struct function TestReverse (line 17) | func TestReverse(t *testing.T) { function BenchmarkReverse (line 35) | func BenchmarkReverse(b *testing.B) { FILE: eBook/exercises/chapter_14/blocking.go function f1 (line 9) | func f1(in chan int) { function main (line 13) | func main() { FILE: eBook/exercises/chapter_14/channel_block3.go function main (line 6) | func main() { FILE: eBook/exercises/chapter_14/channel_buffer.go function main (line 6) | func main() { FILE: eBook/exercises/chapter_14/concurrent_pi.go function main (line 15) | func main() { function CalculatePi (line 25) | func CalculatePi(n int) float64 { function term (line 39) | func term(ch chan float64, k float64) { FILE: eBook/exercises/chapter_14/concurrent_pi2.go constant NCPU (line 11) | NCPU = 2 function main (line 13) | func main() { function CalculatePi (line 22) | func CalculatePi(end int) float64 { function term (line 34) | func term(ch chan float64, start, end int) { FILE: eBook/exercises/chapter_14/general_lazy_evalution2.go type Any (line 7) | type Any interface type EvalFunc (line 8) | type EvalFunc function main (line 10) | func main() { function BuildLazyEvaluator (line 25) | func BuildLazyEvaluator(evalFunc EvalFunc, initState Any) func() Any { function BuildLazyUInt64Evaluator (line 42) | func BuildLazyUInt64Evaluator(evalFunc EvalFunc, initState Any) func() u... FILE: eBook/exercises/chapter_14/gofibonacci.go function main (line 10) | func main() { function fibnterms (line 30) | func fibnterms(term int, c chan int) { function fibonacci (line 37) | func fibonacci(n int) (res int) { FILE: eBook/exercises/chapter_14/gofibonacci2.go function fibonacci (line 8) | func fibonacci(n int, c chan int) { function main (line 17) | func main() { FILE: eBook/exercises/chapter_14/gofibonacci3.go function dup3 (line 9) | func dup3(in <-chan int) (<-chan int, <-chan int, <-chan int) { function fib (line 22) | func fib() <-chan int { function main (line 37) | func main() { FILE: eBook/exercises/chapter_14/gofibonacci_select.go function fibonacci (line 6) | func fibonacci(c, quit chan int) { function main (line 19) | func main() { FILE: eBook/exercises/chapter_14/goroutine_close.go function tel (line 8) | func tel(ch chan int) { function main (line 15) | func main() { FILE: eBook/exercises/chapter_14/goroutine_panic.go function tel (line 7) | func tel(ch chan int) { function main (line 13) | func main() { FILE: eBook/exercises/chapter_14/goroutine_select.go function tel (line 9) | func tel(ch chan int, quit chan bool) { function main (line 16) | func main() { FILE: eBook/exercises/chapter_14/gosum.go function sum (line 8) | func sum(x, y int, c chan int) { function main (line 12) | func main() { FILE: eBook/exercises/chapter_14/multiplex_server3.go type Request (line 8) | type Request struct method String (line 19) | func (r *Request) String() string { type binOp (line 13) | type binOp function run (line 15) | func run(op binOp, req *Request) { function server (line 23) | func server(op binOp, service chan *Request, quit chan bool) { function startServer (line 34) | func startServer(op binOp) (service chan *Request, quit chan bool) { function main (line 41) | func main() { FILE: eBook/exercises/chapter_14/polar_to_cartesian.go type polar (line 14) | type polar struct type cartesian (line 19) | type cartesian struct constant result (line 24) | result = "Polar: radius=%.02f angle=%.02f degrees -- Cartesian: x=%.02f ... function init (line 28) | func init() { function main (line 36) | func main() { function createSolver (line 44) | func createSolver(questions chan polar) chan cartesian { function interact (line 58) | func interact(questions chan polar, answers chan cartesian) { function floatsForStrings (line 84) | func floatsForStrings(numbers []string) ([]float64, error) { FILE: eBook/exercises/chapter_14/producer_consumer.go function numGen (line 7) | func numGen(start, count int, out chan<- int) { function numEchoRange (line 16) | func numEchoRange(in <-chan int, done chan<- bool) { function main (line 23) | func main() { FILE: eBook/exercises/chapter_14/producer_consumer2.go function produce (line 10) | func produce() { function consume (line 17) | func consume() { function main (line 24) | func main() { FILE: eBook/exercises/chapter_14/random_bitgen.go function main (line 7) | func main() { FILE: eBook/exercises/chapter_15/client1.go function main (line 11) | func main() { function checkError (line 42) | func checkError(error error) { FILE: eBook/exercises/chapter_15/hello_server.go type Hello (line 9) | type Hello struct method ServeHTTP (line 11) | func (h Hello) ServeHTTP(w http.ResponseWriter, r *http.Request) { function main (line 15) | func main() { FILE: eBook/exercises/chapter_15/http_fetch2.go function main (line 14) | func main() { function CheckError (line 27) | func CheckError(err error) { FILE: eBook/exercises/chapter_15/server1.go function main (line 13) | func main() { function doServerStuff (line 32) | func doServerStuff(conn net.Conn) { function checkError (line 62) | func checkError(error error) { function DisplayList (line 68) | func DisplayList() { FILE: eBook/exercises/chapter_15/statistics.go type statistics (line 13) | type statistics struct constant form (line 19) | form = ` constant error (line 25) | error = `

%s

` function main (line 30) | func main() { function homePage (line 37) | func homePage(writer http.ResponseWriter, request *http.Request) { function processRequest (line 54) | func processRequest(request *http.Request) ([]float64, string, bool) { function getStats (line 78) | func getStats(numbers []float64) (stats statistics) { function sum (line 86) | func sum(numbers []float64) (total float64) { function median (line 93) | func median(numbers []float64) float64 { function formatStats (line 102) | func formatStats(stats statistics) string { FILE: eBook/exercises/chapter_15/template_validation_recover.go function main (line 10) | func main() { FILE: eBook/exercises/chapter_15/twitter_status_json.go type Status (line 11) | type Status struct type User (line 15) | type User struct function main (line 19) | func main() { FILE: eBook/exercises/chapter_15/webhello2.go function helloHandler (line 10) | func helloHandler(w http.ResponseWriter, r *http.Request) { function shouthelloHandler (line 15) | func shouthelloHandler(w http.ResponseWriter, r *http.Request) { function main (line 20) | func main() { FILE: eBook/exercises/chapter_4/count_characters.go function main (line 8) | func main() { FILE: eBook/exercises/chapter_4/divby0.go function main (line 3) | func main() { FILE: eBook/exercises/chapter_4/function_calls_function.go function main (line 5) | func main() { function f1 (line 10) | func f1() { function f2 (line 15) | func f2() { FILE: eBook/exercises/chapter_4/global_scope.go function main (line 5) | func main() { function n (line 11) | func n() { function m (line 15) | func m() { FILE: eBook/exercises/chapter_4/local_scope.go function main (line 5) | func main() { function n (line 10) | func n() { function m (line 13) | func m() { FILE: eBook/exercises/chapter_5/bitwise_complement.go function main (line 5) | func main() { FILE: eBook/exercises/chapter_5/fizzbuzz.go constant FIZZ (line 6) | FIZZ = 3 constant BUZZ (line 7) | BUZZ = 5 constant FIZZBUZZ (line 8) | FIZZBUZZ = 15 function main (line 11) | func main() { FILE: eBook/exercises/chapter_5/for_character.go function main (line 3) | func main() { FILE: eBook/exercises/chapter_5/for_loop.go function main (line 5) | func main() { FILE: eBook/exercises/chapter_5/i_undefined.go function main (line 8) | func main() { FILE: eBook/exercises/chapter_5/multiple_for.go function main (line 6) | func main() { FILE: eBook/exercises/chapter_5/rectangle_stars.go function main (line 6) | func main() { FILE: eBook/exercises/chapter_5/season.go function main (line 5) | func main() { function Season (line 9) | func Season(month int) string { FILE: eBook/exercises/chapter_6/10to1_recursive.go function main (line 5) | func main() { function printrec (line 9) | func printrec(i int) { FILE: eBook/exercises/chapter_6/compose.go function Compose (line 9) | func Compose(f, g func(x float64) float64) func(x float64) float64 { function main (line 15) | func main() { FILE: eBook/exercises/chapter_6/error_returnval.go function main (line 10) | func main() { function MySqrt (line 30) | func MySqrt(f float64) (float64, error) { function MySqrt2 (line 40) | func MySqrt2(f float64) (ret float64, err error) { FILE: eBook/exercises/chapter_6/factorial.go function main (line 8) | func main() { function Factorial (line 24) | func Factorial(n uint64) (fac uint64) { FILE: eBook/exercises/chapter_6/fibonacci2.go function main (line 5) | func main() { function fibonacci (line 14) | func fibonacci(n int) (val, pos int) { FILE: eBook/exercises/chapter_6/fibonacci_closure.go function fib (line 5) | func fib() func() int { function main (line 13) | func main() { FILE: eBook/exercises/chapter_6/function_filter2.go type flt (line 6) | type flt function isEven (line 9) | func isEven(n int) bool { function filter (line 16) | func filter(sl []int, f flt) (yes, no []int) { function main (line 27) | func main() { FILE: eBook/exercises/chapter_6/lambda_value.go function main (line 8) | func main() { FILE: eBook/exercises/chapter_6/mult_returnval.go function SumProductDiff (line 8) | func SumProductDiff(i, j int) (int, int, int) { function SumProductDiffN (line 12) | func SumProductDiffN(i, j int) (s int, p int, d int) { function main (line 17) | func main() { FILE: eBook/exercises/chapter_6/strings_map.go function main (line 9) | func main() { FILE: eBook/exercises/chapter_6/varargs.go function main (line 8) | func main() { function printInts (line 16) | func printInts(list ...int) { FILE: eBook/exercises/chapter_7/array_value.go function main (line 5) | func main() { FILE: eBook/exercises/chapter_7/bubblesort.go function main (line 8) | func main() { function bubbleSort (line 17) | func bubbleSort(sl []int) { FILE: eBook/exercises/chapter_7/fibonacci_array.go function main (line 7) | func main() { FILE: eBook/exercises/chapter_7/fibonacci_funcarray.go function main (line 7) | func main() { function fibarray (line 14) | func fibarray(term int) []int { FILE: eBook/exercises/chapter_7/filter_slice.go function main (line 8) | func main() { function Filter (line 16) | func Filter(s []int, fn func(int) bool) []int { function even (line 26) | func even(n int) bool { FILE: eBook/exercises/chapter_7/for_array.go function main (line 5) | func main() { FILE: eBook/exercises/chapter_7/insert_slice.go function main (line 8) | func main() { function InsertStringSlice (line 17) | func InsertStringSlice(slice, insertion []string, index int) []string { FILE: eBook/exercises/chapter_7/magnify_slice.go function main (line 7) | func main() { function enlarge (line 16) | func enlarge(s []int, factor int) []int { FILE: eBook/exercises/chapter_7/map_function.go function main (line 5) | func main() { function mapFunc (line 21) | func mapFunc(mf func(int) int, list []int) []int { FILE: eBook/exercises/chapter_7/min_max.go function main (line 9) | func main() { function maxSlice (line 17) | func maxSlice(sl []int) (max int) { function minSlice (line 26) | func minSlice(sl []int) (min int) { FILE: eBook/exercises/chapter_7/remove_slice.go function main (line 8) | func main() { function RemoveStringSlice (line 14) | func RemoveStringSlice(slice []string, start, end int) []string { FILE: eBook/exercises/chapter_7/split_string.go function main (line 5) | func main() { function Split (line 14) | func Split(s string, pos int) (string, string) { FILE: eBook/exercises/chapter_7/string_reverse.go function reverse (line 5) | func reverse(s string) string { function main (line 14) | func main() { FILE: eBook/exercises/chapter_7/string_split2.go function main (line 5) | func main() { function Split2 (line 11) | func Split2(s string) string { FILE: eBook/exercises/chapter_7/sum_array.go function main (line 7) | func main() { function Sum (line 25) | func Sum(a []float32) (sum float32) { function SumAndAverage (line 32) | func SumAndAverage(a []int) (int, float32) { FILE: eBook/exercises/chapter_7/uniq.go function main (line 10) | func main() { FILE: eBook/exercises/chapter_8/map_days.go function main (line 16) | func main() { FILE: eBook/exercises/chapter_8/map_drinks.go function main (line 9) | func main() { FILE: eBook/exercises/chapter_9/dlinked_list.go function main (line 9) | func main() { FILE: eBook/exercises/chapter_9/even/even.go function Even (line 4) | func Even(i int) bool { // exported function FILE: eBook/exercises/chapter_9/fibo/fibonacci.go function Fibonacci (line 14) | func Fibonacci(op string, n int) (res int) { FILE: eBook/exercises/chapter_9/greetings/greetings.go function GoodDay (line 5) | func GoodDay(name string) string { function GoodNight (line 9) | func GoodNight(name string) string { function IsAM (line 13) | func IsAM() bool { function IsAfternoon (line 18) | func IsAfternoon() bool { function IsEvening (line 23) | func IsEvening() bool { FILE: eBook/exercises/chapter_9/main_fibo.go function main (line 11) | func main() { function calls (line 27) | func calls() { function next (line 37) | func next() { FILE: eBook/exercises/chapter_9/main_greetings.go function main (line 8) | func main() { FILE: eBook/exercises/chapter_9/main_oddeven.go function main (line 9) | func main() { FILE: eBook/exercises/chapter_9/size_int.go function main (line 9) | func main() {