SYMBOL INDEX (1472 symbols across 309 files) FILE: de/code/src/apps/ch.1.2/main.go function main (line 12) | func main() { FILE: de/code/src/apps/ch.2.1/main.go function main (line 9) | func main() { FILE: de/code/src/apps/ch.2.2/main.go constant Pi (line 11) | Pi = 3.1415926 constant i (line 19) | i = 1e4 constant MaxThread (line 20) | MaxThread = 10 constant prefix (line 21) | prefix = "astaxie_" function show_multiple_assignments (line 29) | func show_multiple_assignments() { function show_bool (line 49) | func show_bool() { function show_different_types (line 58) | func show_different_types() { function show_strings (line 79) | func show_strings() { function show_string_manipulation (line 93) | func show_string_manipulation() { function show_errors (line 115) | func show_errors() { function show_iota (line 122) | func show_iota() { function This_is_public (line 145) | func This_is_public() {} function this_is_private (line 146) | func this_is_private() {} function set_default_values (line 148) | func set_default_values() { function show_arrays (line 164) | func show_arrays() { function show_slices (line 196) | func show_slices() { function show_map (line 237) | func show_map() { function main (line 265) | func main() { FILE: de/code/src/apps/ch.2.2/what_is_wrong_with_this/main.go function main (line 6) | func main() { FILE: de/code/src/apps/ch.2.3/basic_functions/main.go function max (line 8) | func max(a, b int) int { function main (line 15) | func main() { FILE: de/code/src/apps/ch.2.3/hidden_print_methods/main.go function f (line 7) | func f() { function main (line 12) | func main() { FILE: de/code/src/apps/ch.2.3/import_packages/main.go function main (line 20) | func main() { FILE: de/code/src/apps/ch.2.3/import_packages/only_call_init/only_call_init.go function init (line 5) | func init() { FILE: de/code/src/apps/ch.2.3/main.go function computedValue (line 7) | func computedValue() int { function show_if (line 10) | func show_if() { function show_if_var (line 31) | func show_if_var() { function show_goto (line 43) | func show_goto() { function show_for_loop (line 54) | func show_for_loop() { function show_loop_through_map (line 78) | func show_loop_through_map() { function show_switch (line 91) | func show_switch() { function show_defer (line 127) | func show_defer() { function main (line 134) | func main() { FILE: de/code/src/apps/ch.2.3/panic_and_recover/main.go function check_user (line 12) | func check_user() { function throwsPanic (line 18) | func throwsPanic(f func()) (b bool) { function main (line 28) | func main(){ FILE: de/code/src/apps/ch.2.3/pass_by_value_and_pointer/main.go function add_by_value (line 7) | func add_by_value(a int) int { function add_by_reference (line 11) | func add_by_reference(a *int) int { function show_add_by_value (line 15) | func show_add_by_value() { function show_add_by_reference (line 21) | func show_add_by_reference() { function main (line 28) | func main() { FILE: de/code/src/apps/ch.2.3/type_function/main.go type testInt (line 7) | type testInt function isOdd (line 9) | func isOdd(integer int) bool { function isEven (line 16) | func isEven(integer int) bool { function filter (line 25) | func filter(slice []int, f testInt) []int { function init (line 34) | func init() { function main (line 37) | func main() { FILE: de/code/src/apps/ch.2.3/variadic_functions/main.go function SumAndProduct (line 8) | func SumAndProduct(A, B int) (int, int) { function main (line 12) | func main() { FILE: de/code/src/apps/ch.2.4/compare_age/main.go type person (line 8) | type person struct function Older (line 15) | func Older(p1, p2 person) (person, int) { function main (line 22) | func main() { FILE: de/code/src/apps/ch.2.4/embedded_structs/main.go type Human (line 7) | type Human struct type Student (line 13) | type Student struct function main (line 18) | func main() { FILE: de/code/src/apps/ch.2.4/embedded_structs2/main.go type Skills (line 7) | type Skills type Human (line 9) | type Human struct type Student (line 15) | type Student struct function main (line 22) | func main() { FILE: de/code/src/apps/ch.2.4/embedded_structs_with_name_conflict/main.go type Human (line 7) | type Human struct type Employee (line 13) | type Employee struct function main (line 19) | func main() { FILE: de/code/src/apps/ch.2.4/main.go function show_basic_struct (line 7) | func show_basic_struct() { function show_anonymous_struct (line 27) | func show_anonymous_struct() { function main (line 36) | func main() { FILE: de/code/src/apps/ch.2.5/attach_methods_to_struct/main.go type Rectangle (line 10) | type Rectangle struct method area (line 18) | func (r Rectangle) area() float64 { type Circle (line 14) | type Circle struct method area (line 22) | func (c Circle) area() float64 { function main (line 26) | func main() { FILE: de/code/src/apps/ch.2.5/box_example/main.go constant WHITE (line 6) | WHITE = iota constant BLACK (line 7) | BLACK constant BLUE (line 8) | BLUE constant RED (line 9) | RED constant YELLOW (line 10) | YELLOW type Color (line 13) | type Color method String (line 48) | func (c Color) String() string { type Box (line 15) | type Box struct method Volume (line 22) | func (b Box) Volume() float64 { method SetColor (line 26) | func (b *Box) SetColor(c Color) { type BoxList (line 20) | type BoxList method BiggestsColor (line 30) | func (bl BoxList) BiggestsColor() Color { method PaintItBlack (line 42) | func (bl BoxList) PaintItBlack() { function main (line 53) | func main() { FILE: de/code/src/apps/ch.2.5/embedded_method/main.go type Human (line 4) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 10) | type Student struct type Employee (line 15) | type Employee struct function main (line 25) | func main() { FILE: de/code/src/apps/ch.2.5/method_overload/main.go type Human (line 5) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 11) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 25) | func (e *Employee) SayHi() { function main (line 30) | func main() { FILE: de/code/src/apps/ch.2.5/pass_struct_to_method/main.go type Rectangle (line 5) | type Rectangle struct function area (line 9) | func area(r Rectangle) float64 { function main (line 13) | func main() { FILE: de/code/src/apps/ch.2.6/interface/main.go type Human (line 4) | type Human struct method SayHi (line 22) | func (h Human) SayHi() { method Sing (line 26) | func (h Human) Sing(lyrics string) { type Student (line 10) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 30) | func (e Employee) SayHi() { type Men (line 36) | type Men interface function main (line 41) | func main() { FILE: de/code/src/apps/ch.2.6/reflection/main.go function show_interface_none (line 8) | func show_interface_none() { function show_reflection (line 16) | func show_reflection() { function main (line 30) | func main() { FILE: de/code/src/apps/ch.2.6/stringer_interface/main.go type Human (line 8) | type Human struct method String (line 15) | func (h Human) String() string { function main (line 19) | func main() { FILE: de/code/src/apps/ch.2.6/switch_type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: de/code/src/apps/ch.2.6/type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: de/code/src/apps/ch.2.7/buffered_channel/main.go function main (line 7) | func main() { FILE: de/code/src/apps/ch.2.7/goroutine/main.go function say (line 10) | func say(s string) { function main (line 17) | func main() { FILE: de/code/src/apps/ch.2.7/range_and_close_channel/main.go function fibonacci (line 9) | func fibonacci(n int, c chan int) { function main (line 18) | func main() { FILE: de/code/src/apps/ch.2.7/select_channel/main.go function fibonacci (line 7) | func fibonacci(c, quit chan int) { function main (line 20) | func main() { FILE: de/code/src/apps/ch.2.7/timeout/main.go function main (line 11) | func main() { FILE: de/code/src/apps/ch.2.7/unbuffered_channel/main.go function sum (line 7) | func sum(a []int, c chan int) { function main (line 15) | func main() { FILE: de/code/src/apps/ch.3.2/main.go function sayhelloName (line 12) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 25) | func main() { FILE: de/code/src/apps/ch.3.4/main.go type MyMux (line 11) | type MyMux struct method ServeHTTP (line 14) | func (p *MyMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { function sayhelloName (line 23) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 27) | func main() { FILE: de/code/src/apps/ch.4.1/main.go function sayhelloName (line 14) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function login (line 28) | func login(w http.ResponseWriter, r *http.Request) { function main (line 41) | func main() { FILE: de/code/src/apps/ch.4.2/main.go constant PORT (line 15) | PORT = "9090" constant HOST_URL (line 16) | HOST_URL = "http://localhost:" + PORT type Links (line 21) | type Links struct function index (line 28) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 31) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 34) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 50) | func main() { FILE: de/code/src/apps/ch.4.2/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: de/code/src/apps/ch.4.3/main.go function index (line 13) | func index(w http.ResponseWriter, r *http.Request) { function templateHandler (line 23) | func templateHandler(w http.ResponseWriter, r *http.Request) { function main (line 35) | func main() { FILE: de/code/src/apps/ch.4.4/main.go constant PORT (line 16) | PORT = "9090" constant HOST_URL (line 17) | HOST_URL = "http://localhost:" + PORT function index (line 23) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 26) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 29) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 45) | func main() { FILE: de/code/src/apps/ch.4.4/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: de/code/src/apps/ch.4.4/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: de/code/src/apps/ch.4.5/client_upload/main.go function checkError (line 13) | func checkError(err error) { function postFile (line 18) | func postFile(filename string, targetUrl string) { function main (line 42) | func main() { FILE: de/code/src/apps/ch.4.5/main.go constant MiB_UNIT (line 16) | MiB_UNIT = 1 << 20 function checkError (line 21) | func checkError(err error) { function indexHandler (line 26) | func indexHandler(w http.ResponseWriter, r *http.Request) { function uploadHandler (line 30) | func uploadHandler(w http.ResponseWriter, r *http.Request) { function saveUpload (line 44) | func saveUpload(file multipart.File, handler *multipart.FileHeader) { function init (line 54) | func init() { function main (line 59) | func main() { FILE: de/code/src/apps/ch.4.5/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: de/code/src/apps/ch.4.5/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: de/code/src/apps/ch.5.2/main.go constant DB_USER (line 12) | DB_USER = "user" constant DB_PASSWORD (line 13) | DB_PASSWORD = "" constant DB_NAME (line 14) | DB_NAME = "test" function main (line 17) | func main() { function checkErr (line 72) | func checkErr(err error) { FILE: de/code/src/apps/ch.5.2/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: de/code/src/apps/ch.5.3/main.go constant DB_PATH (line 12) | DB_PATH = "./foo.db" function main (line 14) | func main() { function checkErr (line 68) | func checkErr(err error) { FILE: de/code/src/apps/ch.5.3/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: de/code/src/apps/ch.5.4/main.go constant DB_USER (line 14) | DB_USER = "user" constant DB_PASSWORD (line 15) | DB_PASSWORD = "" constant DB_NAME (line 16) | DB_NAME = "test" function main (line 19) | func main() { function checkErr (line 74) | func checkErr(err error) { FILE: de/code/src/apps/ch.5.4/schema.sql type userinfo (line 1) | CREATE TABLE userinfo FILE: de/code/src/apps/ch.5.5/main.go type Userinfo (line 15) | type Userinfo struct constant DB_PATH (line 22) | DB_PATH = "./foo.db" function checkError (line 24) | func checkError(err error) { function getTimeStamp (line 29) | func getTimeStamp() string { function insertUsingStruct (line 32) | func insertUsingStruct() int64 { function insertUsingMap (line 42) | func insertUsingMap() int64 { function getOneUserInfo (line 54) | func getOneUserInfo(id int64) Userinfo { function getAllUserInfo (line 61) | func getAllUserInfo(id int64) []Userinfo { function updateUserinfo (line 68) | func updateUserinfo(id int64) { function updateUsingMap (line 79) | func updateUsingMap(id int64) { function getMapsFromSelect (line 91) | func getMapsFromSelect(id int64) []map[string][]byte { function groupby (line 101) | func groupby() { function joinTables (line 109) | func joinTables(id int64) { function deleteWithUserinfo (line 117) | func deleteWithUserinfo(id int64) { function deleteRows (line 125) | func deleteRows() { function deleteAllUserinfo (line 133) | func deleteAllUserinfo(id int64) { function main (line 141) | func main() { FILE: de/code/src/apps/ch.5.5/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( type `userdetail` (line 7) | CREATE TABLE `userdetail` ( FILE: de/code/src/apps/ch.5.6/mongodb/main.go type Person (line 11) | type Person struct function checkError (line 16) | func checkError(err error) { constant DB_NAME (line 23) | DB_NAME = "test" constant DB_COLLECTION (line 24) | DB_COLLECTION = "people" function main (line 27) | func main() { FILE: de/code/src/apps/ch.5.6/redis/main.go function checkError (line 10) | func checkError(err error) { constant DB_PORT (line 17) | DB_PORT = "9191" constant DB_URL (line 18) | DB_URL = "127.0.0.1" function main (line 21) | func main() { FILE: de/code/src/mymath/sqrt.go function Sqrt (line 6) | func Sqrt(x float64) float64 { FILE: en/build.go type Visitor (line 15) | type Visitor struct method md2html (line 17) | func (self *Visitor) md2html(arg map[string]string) error { function FixHeader (line 77) | func FixHeader(input string) string { function RemoveFooterLink (line 87) | func RemoveFooterLink(input string) string { function RemoveImageLinkSuffix (line 92) | func RemoveImageLinkSuffix(input string) string { function main (line 97) | func main() { FILE: en/code/src/apps/ch.1.2/main.go function main (line 12) | func main() { FILE: en/code/src/apps/ch.2.1/main.go function main (line 9) | func main() { FILE: en/code/src/apps/ch.2.2/main.go constant Pi (line 11) | Pi = 3.1415926 constant i (line 19) | i = 1e4 constant MaxThread (line 20) | MaxThread = 10 constant prefix (line 21) | prefix = "astaxie_" function show_multiple_assignments (line 29) | func show_multiple_assignments() { function show_bool (line 49) | func show_bool() { function show_different_types (line 58) | func show_different_types() { function show_strings (line 79) | func show_strings() { function show_string_manipulation (line 93) | func show_string_manipulation() { function show_errors (line 115) | func show_errors() { function show_iota (line 122) | func show_iota() { function This_is_public (line 145) | func This_is_public() {} function this_is_private (line 146) | func this_is_private() {} function set_default_values (line 148) | func set_default_values() { function show_arrays (line 164) | func show_arrays() { function show_slices (line 196) | func show_slices() { function show_map (line 237) | func show_map() { function main (line 265) | func main() { FILE: en/code/src/apps/ch.2.2/what_is_wrong_with_this/main.go function main (line 6) | func main() { FILE: en/code/src/apps/ch.2.3/basic_functions/main.go function max (line 8) | func max(a, b int) int { function main (line 15) | func main() { FILE: en/code/src/apps/ch.2.3/hidden_print_methods/main.go function f (line 7) | func f() { function main (line 12) | func main() { FILE: en/code/src/apps/ch.2.3/import_packages/main.go function main (line 20) | func main() { FILE: en/code/src/apps/ch.2.3/import_packages/only_call_init/only_call_init.go function init (line 5) | func init() { FILE: en/code/src/apps/ch.2.3/main.go function computedValue (line 7) | func computedValue() int { function show_if (line 10) | func show_if() { function show_if_var (line 31) | func show_if_var() { function show_goto (line 43) | func show_goto() { function show_for_loop (line 54) | func show_for_loop() { function show_loop_through_map (line 78) | func show_loop_through_map() { function show_switch (line 91) | func show_switch() { function show_defer (line 127) | func show_defer() { function main (line 134) | func main() { FILE: en/code/src/apps/ch.2.3/panic_and_recover/main.go function check_user (line 12) | func check_user() { function throwsPanic (line 18) | func throwsPanic(f func()) (b bool) { function main (line 28) | func main(){ FILE: en/code/src/apps/ch.2.3/pass_by_value_and_pointer/main.go function add_by_value (line 7) | func add_by_value(a int) int { function add_by_reference (line 11) | func add_by_reference(a *int) int { function show_add_by_value (line 15) | func show_add_by_value() { function show_add_by_reference (line 21) | func show_add_by_reference() { function main (line 28) | func main() { FILE: en/code/src/apps/ch.2.3/type_function/main.go type testInt (line 7) | type testInt function isOdd (line 9) | func isOdd(integer int) bool { function isEven (line 16) | func isEven(integer int) bool { function filter (line 25) | func filter(slice []int, f testInt) []int { function init (line 34) | func init() { function main (line 37) | func main() { FILE: en/code/src/apps/ch.2.3/variadic_functions/main.go function SumAndProduct (line 8) | func SumAndProduct(A, B int) (int, int) { function main (line 12) | func main() { FILE: en/code/src/apps/ch.2.4/compare_age/main.go type person (line 8) | type person struct function Older (line 15) | func Older(p1, p2 person) (person, int) { function main (line 22) | func main() { FILE: en/code/src/apps/ch.2.4/embedded_structs/main.go type Human (line 7) | type Human struct type Student (line 13) | type Student struct function main (line 18) | func main() { FILE: en/code/src/apps/ch.2.4/embedded_structs2/main.go type Skills (line 7) | type Skills type Human (line 9) | type Human struct type Student (line 15) | type Student struct function main (line 22) | func main() { FILE: en/code/src/apps/ch.2.4/embedded_structs_with_name_conflict/main.go type Human (line 7) | type Human struct type Employee (line 13) | type Employee struct function main (line 19) | func main() { FILE: en/code/src/apps/ch.2.4/main.go function show_basic_struct (line 7) | func show_basic_struct() { function show_anonymous_struct (line 27) | func show_anonymous_struct() { function main (line 36) | func main() { FILE: en/code/src/apps/ch.2.5/attach_methods_to_struct/main.go type Rectangle (line 10) | type Rectangle struct method area (line 18) | func (r Rectangle) area() float64 { type Circle (line 14) | type Circle struct method area (line 22) | func (c Circle) area() float64 { function main (line 26) | func main() { FILE: en/code/src/apps/ch.2.5/box_example/main.go constant WHITE (line 6) | WHITE = iota constant BLACK (line 7) | BLACK constant BLUE (line 8) | BLUE constant RED (line 9) | RED constant YELLOW (line 10) | YELLOW type Color (line 13) | type Color method String (line 48) | func (c Color) String() string { type Box (line 15) | type Box struct method Volume (line 22) | func (b Box) Volume() float64 { method SetColor (line 26) | func (b *Box) SetColor(c Color) { type BoxList (line 20) | type BoxList method BiggestsColor (line 30) | func (bl BoxList) BiggestsColor() Color { method PaintItBlack (line 42) | func (bl BoxList) PaintItBlack() { function main (line 53) | func main() { FILE: en/code/src/apps/ch.2.5/embedded_method/main.go type Human (line 4) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 10) | type Student struct type Employee (line 15) | type Employee struct function main (line 25) | func main() { FILE: en/code/src/apps/ch.2.5/method_overload/main.go type Human (line 5) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 11) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 25) | func (e *Employee) SayHi() { function main (line 30) | func main() { FILE: en/code/src/apps/ch.2.5/pass_struct_to_method/main.go type Rectangle (line 5) | type Rectangle struct function area (line 9) | func area(r Rectangle) float64 { function main (line 13) | func main() { FILE: en/code/src/apps/ch.2.6/interface/main.go type Human (line 4) | type Human struct method SayHi (line 22) | func (h Human) SayHi() { method Sing (line 26) | func (h Human) Sing(lyrics string) { type Student (line 10) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 30) | func (e Employee) SayHi() { type Men (line 36) | type Men interface function main (line 41) | func main() { FILE: en/code/src/apps/ch.2.6/reflection/main.go function show_interface_none (line 8) | func show_interface_none() { function show_reflection (line 16) | func show_reflection() { function main (line 30) | func main() { FILE: en/code/src/apps/ch.2.6/stringer_interface/main.go type Human (line 8) | type Human struct method String (line 15) | func (h Human) String() string { function main (line 19) | func main() { FILE: en/code/src/apps/ch.2.6/switch_type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: en/code/src/apps/ch.2.6/type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: en/code/src/apps/ch.2.7/buffered_channel/main.go function main (line 7) | func main() { FILE: en/code/src/apps/ch.2.7/goroutine/main.go function say (line 10) | func say(s string) { function main (line 17) | func main() { FILE: en/code/src/apps/ch.2.7/range_and_close_channel/main.go function fibonacci (line 9) | func fibonacci(n int, c chan int) { function main (line 18) | func main() { FILE: en/code/src/apps/ch.2.7/select_channel/main.go function fibonacci (line 7) | func fibonacci(c, quit chan int) { function main (line 20) | func main() { FILE: en/code/src/apps/ch.2.7/timeout/main.go function main (line 11) | func main() { FILE: en/code/src/apps/ch.2.7/unbuffered_channel/main.go function sum (line 7) | func sum(a []int, c chan int) { function main (line 15) | func main() { FILE: en/code/src/apps/ch.3.2/main.go function sayhelloName (line 12) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 25) | func main() { FILE: en/code/src/apps/ch.3.4/main.go type MyMux (line 11) | type MyMux struct method ServeHTTP (line 14) | func (p *MyMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { function sayhelloName (line 23) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 27) | func main() { FILE: en/code/src/apps/ch.4.1/main.go function sayhelloName (line 14) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function login (line 28) | func login(w http.ResponseWriter, r *http.Request) { function main (line 41) | func main() { FILE: en/code/src/apps/ch.4.2/main.go constant PORT (line 15) | PORT = "9090" constant HOST_URL (line 16) | HOST_URL = "http://localhost:" + PORT type Links (line 21) | type Links struct function index (line 28) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 31) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 34) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 50) | func main() { FILE: en/code/src/apps/ch.4.2/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: en/code/src/apps/ch.4.3/main.go function index (line 13) | func index(w http.ResponseWriter, r *http.Request) { function templateHandler (line 23) | func templateHandler(w http.ResponseWriter, r *http.Request) { function main (line 35) | func main() { FILE: en/code/src/apps/ch.4.4/main.go constant PORT (line 16) | PORT = "9090" constant HOST_URL (line 17) | HOST_URL = "http://localhost:" + PORT function index (line 23) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 26) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 29) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 45) | func main() { FILE: en/code/src/apps/ch.4.4/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: en/code/src/apps/ch.4.4/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: en/code/src/apps/ch.4.5/client_upload/main.go function checkError (line 13) | func checkError(err error) { function postFile (line 18) | func postFile(filename string, targetUrl string) { function main (line 42) | func main() { FILE: en/code/src/apps/ch.4.5/main.go constant MiB_UNIT (line 16) | MiB_UNIT = 1 << 20 function checkError (line 21) | func checkError(err error) { function indexHandler (line 26) | func indexHandler(w http.ResponseWriter, r *http.Request) { function uploadHandler (line 30) | func uploadHandler(w http.ResponseWriter, r *http.Request) { function saveUpload (line 44) | func saveUpload(file multipart.File, handler *multipart.FileHeader) { function init (line 54) | func init() { function main (line 59) | func main() { FILE: en/code/src/apps/ch.4.5/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: en/code/src/apps/ch.4.5/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: en/code/src/apps/ch.5.2/main.go constant DB_USER (line 12) | DB_USER = "user" constant DB_PASSWORD (line 13) | DB_PASSWORD = "" constant DB_NAME (line 14) | DB_NAME = "test" function main (line 17) | func main() { function checkErr (line 72) | func checkErr(err error) { FILE: en/code/src/apps/ch.5.2/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: en/code/src/apps/ch.5.3/main.go constant DB_PATH (line 12) | DB_PATH = "./foo.db" function main (line 14) | func main() { function checkErr (line 68) | func checkErr(err error) { FILE: en/code/src/apps/ch.5.3/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: en/code/src/apps/ch.5.4/main.go constant DB_USER (line 14) | DB_USER = "user" constant DB_PASSWORD (line 15) | DB_PASSWORD = "" constant DB_NAME (line 16) | DB_NAME = "test" function main (line 19) | func main() { function checkErr (line 74) | func checkErr(err error) { FILE: en/code/src/apps/ch.5.4/schema.sql type userinfo (line 1) | CREATE TABLE userinfo FILE: en/code/src/apps/ch.5.5/main.go type Userinfo (line 15) | type Userinfo struct constant DB_PATH (line 22) | DB_PATH = "./foo.db" function checkError (line 24) | func checkError(err error) { function getTimeStamp (line 29) | func getTimeStamp() string { function insertUsingStruct (line 32) | func insertUsingStruct() int64 { function insertUsingMap (line 42) | func insertUsingMap() int64 { function getOneUserInfo (line 54) | func getOneUserInfo(id int64) Userinfo { function getAllUserInfo (line 61) | func getAllUserInfo(id int64) []Userinfo { function updateUserinfo (line 68) | func updateUserinfo(id int64) { function updateUsingMap (line 79) | func updateUsingMap(id int64) { function getMapsFromSelect (line 91) | func getMapsFromSelect(id int64) []map[string][]byte { function groupby (line 101) | func groupby() { function joinTables (line 109) | func joinTables(id int64) { function deleteWithUserinfo (line 117) | func deleteWithUserinfo(id int64) { function deleteRows (line 125) | func deleteRows() { function deleteAllUserinfo (line 133) | func deleteAllUserinfo(id int64) { function main (line 141) | func main() { FILE: en/code/src/apps/ch.5.5/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( type `userdetail` (line 7) | CREATE TABLE `userdetail` ( FILE: en/code/src/apps/ch.5.6/mongodb/main.go type Person (line 11) | type Person struct function checkError (line 16) | func checkError(err error) { constant DB_NAME (line 23) | DB_NAME = "test" constant DB_COLLECTION (line 24) | DB_COLLECTION = "people" function main (line 27) | func main() { FILE: en/code/src/apps/ch.5.6/redis/main.go function checkError (line 10) | func checkError(err error) { constant DB_PORT (line 17) | DB_PORT = "9191" constant DB_URL (line 18) | DB_URL = "127.0.0.1" function main (line 21) | func main() { FILE: en/code/src/mymath/sqrt.go function Sqrt (line 6) | func Sqrt(x float64) float64 { FILE: en/src/1.2/main.go function main (line 11) | func main() { FILE: en/src/1.2/sqrt.go function Sqrt (line 5) | func Sqrt(x float64) float64 { FILE: es/code/src/apps/ch.1.2/main.go function main (line 12) | func main() { FILE: es/code/src/mymath/sqrt.go function Sqrt (line 6) | func Sqrt(x float64) float64 { FILE: fa/code/src/apps/ch.1.2/main.go function main (line 12) | func main() { FILE: fa/code/src/apps/ch.2.1/main.go function main (line 9) | func main() { FILE: fa/code/src/apps/ch.2.2/main.go constant Pi (line 11) | Pi = 3.1415926 constant i (line 19) | i = 1e4 constant MaxThread (line 20) | MaxThread = 10 constant prefix (line 21) | prefix = "astaxie_" function show_multiple_assignments (line 29) | func show_multiple_assignments() { function show_bool (line 49) | func show_bool() { function show_different_types (line 58) | func show_different_types() { function show_strings (line 79) | func show_strings() { function show_string_manipulation (line 93) | func show_string_manipulation() { function show_errors (line 115) | func show_errors() { function show_iota (line 122) | func show_iota() { function This_is_public (line 145) | func This_is_public() {} function this_is_private (line 146) | func this_is_private() {} function set_default_values (line 148) | func set_default_values() { function show_arrays (line 164) | func show_arrays() { function show_slices (line 196) | func show_slices() { function show_map (line 237) | func show_map() { function main (line 265) | func main() { FILE: fa/code/src/apps/ch.2.2/what_is_wrong_with_this/main.go function main (line 6) | func main() { FILE: fa/code/src/apps/ch.2.3/basic_functions/main.go function max (line 8) | func max(a, b int) int { function main (line 15) | func main() { FILE: fa/code/src/apps/ch.2.3/hidden_print_methods/main.go function f (line 7) | func f() { function main (line 12) | func main() { FILE: fa/code/src/apps/ch.2.3/import_packages/main.go function main (line 20) | func main() { FILE: fa/code/src/apps/ch.2.3/import_packages/only_call_init/only_call_init.go function init (line 5) | func init() { FILE: fa/code/src/apps/ch.2.3/main.go function computedValue (line 7) | func computedValue() int { function show_if (line 10) | func show_if() { function show_if_var (line 31) | func show_if_var() { function show_goto (line 43) | func show_goto() { function show_for_loop (line 54) | func show_for_loop() { function show_loop_through_map (line 78) | func show_loop_through_map() { function show_switch (line 91) | func show_switch() { function show_defer (line 127) | func show_defer() { function main (line 134) | func main() { FILE: fa/code/src/apps/ch.2.3/panic_and_recover/main.go function check_user (line 12) | func check_user() { function throwsPanic (line 18) | func throwsPanic(f func()) (b bool) { function main (line 28) | func main(){ FILE: fa/code/src/apps/ch.2.3/pass_by_value_and_pointer/main.go function add_by_value (line 7) | func add_by_value(a int) int { function add_by_reference (line 11) | func add_by_reference(a *int) int { function show_add_by_value (line 15) | func show_add_by_value() { function show_add_by_reference (line 21) | func show_add_by_reference() { function main (line 28) | func main() { FILE: fa/code/src/apps/ch.2.3/type_function/main.go type testInt (line 7) | type testInt function isOdd (line 9) | func isOdd(integer int) bool { function isEven (line 16) | func isEven(integer int) bool { function filter (line 25) | func filter(slice []int, f testInt) []int { function init (line 34) | func init() { function main (line 37) | func main() { FILE: fa/code/src/apps/ch.2.3/variadic_functions/main.go function SumAndProduct (line 8) | func SumAndProduct(A, B int) (int, int) { function main (line 12) | func main() { FILE: fa/code/src/apps/ch.2.4/compare_age/main.go type person (line 8) | type person struct function Older (line 15) | func Older(p1, p2 person) (person, int) { function main (line 22) | func main() { FILE: fa/code/src/apps/ch.2.4/embedded_structs/main.go type Human (line 7) | type Human struct type Student (line 13) | type Student struct function main (line 18) | func main() { FILE: fa/code/src/apps/ch.2.4/embedded_structs2/main.go type Skills (line 7) | type Skills type Human (line 9) | type Human struct type Student (line 15) | type Student struct function main (line 22) | func main() { FILE: fa/code/src/apps/ch.2.4/embedded_structs_with_name_conflict/main.go type Human (line 7) | type Human struct type Employee (line 13) | type Employee struct function main (line 19) | func main() { FILE: fa/code/src/apps/ch.2.4/main.go function show_basic_struct (line 7) | func show_basic_struct() { function show_anonymous_struct (line 27) | func show_anonymous_struct() { function main (line 36) | func main() { FILE: fa/code/src/apps/ch.2.5/attach_methods_to_struct/main.go type Rectangle (line 10) | type Rectangle struct method area (line 18) | func (r Rectangle) area() float64 { type Circle (line 14) | type Circle struct method area (line 22) | func (c Circle) area() float64 { function main (line 26) | func main() { FILE: fa/code/src/apps/ch.2.5/box_example/main.go constant WHITE (line 6) | WHITE = iota constant BLACK (line 7) | BLACK constant BLUE (line 8) | BLUE constant RED (line 9) | RED constant YELLOW (line 10) | YELLOW type Color (line 13) | type Color method String (line 48) | func (c Color) String() string { type Box (line 15) | type Box struct method Volume (line 22) | func (b Box) Volume() float64 { method SetColor (line 26) | func (b *Box) SetColor(c Color) { type BoxList (line 20) | type BoxList method BiggestsColor (line 30) | func (bl BoxList) BiggestsColor() Color { method PaintItBlack (line 42) | func (bl BoxList) PaintItBlack() { function main (line 53) | func main() { FILE: fa/code/src/apps/ch.2.5/embedded_method/main.go type Human (line 4) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 10) | type Student struct type Employee (line 15) | type Employee struct function main (line 25) | func main() { FILE: fa/code/src/apps/ch.2.5/method_overload/main.go type Human (line 5) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 11) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 25) | func (e *Employee) SayHi() { function main (line 30) | func main() { FILE: fa/code/src/apps/ch.2.5/pass_struct_to_method/main.go type Rectangle (line 5) | type Rectangle struct function area (line 9) | func area(r Rectangle) float64 { function main (line 13) | func main() { FILE: fa/code/src/apps/ch.2.6/interface/main.go type Human (line 4) | type Human struct method SayHi (line 22) | func (h Human) SayHi() { method Sing (line 26) | func (h Human) Sing(lyrics string) { type Student (line 10) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 30) | func (e Employee) SayHi() { type Men (line 36) | type Men interface function main (line 41) | func main() { FILE: fa/code/src/apps/ch.2.6/reflection/main.go function show_interface_none (line 8) | func show_interface_none() { function show_reflection (line 16) | func show_reflection() { function main (line 30) | func main() { FILE: fa/code/src/apps/ch.2.6/stringer_interface/main.go type Human (line 8) | type Human struct method String (line 15) | func (h Human) String() string { function main (line 19) | func main() { FILE: fa/code/src/apps/ch.2.6/switch_type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: fa/code/src/apps/ch.2.6/type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: fa/code/src/apps/ch.2.7/buffered_channel/main.go function main (line 7) | func main() { FILE: fa/code/src/apps/ch.2.7/goroutine/main.go function say (line 10) | func say(s string) { function main (line 17) | func main() { FILE: fa/code/src/apps/ch.2.7/range_and_close_channel/main.go function fibonacci (line 9) | func fibonacci(n int, c chan int) { function main (line 18) | func main() { FILE: fa/code/src/apps/ch.2.7/select_channel/main.go function fibonacci (line 7) | func fibonacci(c, quit chan int) { function main (line 20) | func main() { FILE: fa/code/src/apps/ch.2.7/timeout/main.go function main (line 11) | func main() { FILE: fa/code/src/apps/ch.2.7/unbuffered_channel/main.go function sum (line 7) | func sum(a []int, c chan int) { function main (line 15) | func main() { FILE: fa/code/src/apps/ch.3.2/main.go function sayhelloName (line 12) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 25) | func main() { FILE: fa/code/src/apps/ch.3.4/main.go type MyMux (line 11) | type MyMux struct method ServeHTTP (line 14) | func (p *MyMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { function sayhelloName (line 23) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 27) | func main() { FILE: fa/code/src/apps/ch.4.1/main.go function sayhelloName (line 14) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function login (line 28) | func login(w http.ResponseWriter, r *http.Request) { function main (line 41) | func main() { FILE: fa/code/src/apps/ch.4.2/main.go constant PORT (line 15) | PORT = "9090" constant HOST_URL (line 16) | HOST_URL = "http://localhost:" + PORT type Links (line 21) | type Links struct function index (line 28) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 31) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 34) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 50) | func main() { FILE: fa/code/src/apps/ch.4.2/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: fa/code/src/apps/ch.4.3/main.go function index (line 13) | func index(w http.ResponseWriter, r *http.Request) { function templateHandler (line 23) | func templateHandler(w http.ResponseWriter, r *http.Request) { function main (line 35) | func main() { FILE: fa/code/src/apps/ch.4.4/main.go constant PORT (line 16) | PORT = "9090" constant HOST_URL (line 17) | HOST_URL = "http://localhost:" + PORT function index (line 23) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 26) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 29) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 45) | func main() { FILE: fa/code/src/apps/ch.4.4/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: fa/code/src/apps/ch.4.4/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: fa/code/src/apps/ch.4.5/client_upload/main.go function checkError (line 13) | func checkError(err error) { function postFile (line 18) | func postFile(filename string, targetUrl string) { function main (line 42) | func main() { FILE: fa/code/src/apps/ch.4.5/main.go constant MiB_UNIT (line 16) | MiB_UNIT = 1 << 20 function checkError (line 21) | func checkError(err error) { function indexHandler (line 26) | func indexHandler(w http.ResponseWriter, r *http.Request) { function uploadHandler (line 30) | func uploadHandler(w http.ResponseWriter, r *http.Request) { function saveUpload (line 44) | func saveUpload(file multipart.File, handler *multipart.FileHeader) { function init (line 54) | func init() { function main (line 59) | func main() { FILE: fa/code/src/apps/ch.4.5/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: fa/code/src/apps/ch.4.5/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: fa/code/src/apps/ch.5.2/main.go constant DB_USER (line 12) | DB_USER = "user" constant DB_PASSWORD (line 13) | DB_PASSWORD = "" constant DB_NAME (line 14) | DB_NAME = "test" function main (line 17) | func main() { function checkErr (line 72) | func checkErr(err error) { FILE: fa/code/src/apps/ch.5.2/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: fa/code/src/apps/ch.5.3/main.go constant DB_PATH (line 12) | DB_PATH = "./foo.db" function main (line 14) | func main() { function checkErr (line 68) | func checkErr(err error) { FILE: fa/code/src/apps/ch.5.3/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: fa/code/src/apps/ch.5.4/main.go constant DB_USER (line 14) | DB_USER = "user" constant DB_PASSWORD (line 15) | DB_PASSWORD = "" constant DB_NAME (line 16) | DB_NAME = "test" function main (line 19) | func main() { function checkErr (line 74) | func checkErr(err error) { FILE: fa/code/src/apps/ch.5.4/schema.sql type userinfo (line 1) | CREATE TABLE userinfo FILE: fa/code/src/apps/ch.5.5/main.go type Userinfo (line 15) | type Userinfo struct constant DB_PATH (line 22) | DB_PATH = "./foo.db" function checkError (line 24) | func checkError(err error) { function getTimeStamp (line 29) | func getTimeStamp() string { function insertUsingStruct (line 32) | func insertUsingStruct() int64 { function insertUsingMap (line 42) | func insertUsingMap() int64 { function getOneUserInfo (line 54) | func getOneUserInfo(id int64) Userinfo { function getAllUserInfo (line 61) | func getAllUserInfo(id int64) []Userinfo { function updateUserinfo (line 68) | func updateUserinfo(id int64) { function updateUsingMap (line 79) | func updateUsingMap(id int64) { function getMapsFromSelect (line 91) | func getMapsFromSelect(id int64) []map[string][]byte { function groupby (line 101) | func groupby() { function joinTables (line 109) | func joinTables(id int64) { function deleteWithUserinfo (line 117) | func deleteWithUserinfo(id int64) { function deleteRows (line 125) | func deleteRows() { function deleteAllUserinfo (line 133) | func deleteAllUserinfo(id int64) { function main (line 141) | func main() { FILE: fa/code/src/apps/ch.5.5/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( type `userdetail` (line 7) | CREATE TABLE `userdetail` ( FILE: fa/code/src/apps/ch.5.6/mongodb/main.go type Person (line 11) | type Person struct function checkError (line 16) | func checkError(err error) { constant DB_NAME (line 23) | DB_NAME = "test" constant DB_COLLECTION (line 24) | DB_COLLECTION = "people" function main (line 27) | func main() { FILE: fa/code/src/apps/ch.5.6/redis/main.go function checkError (line 10) | func checkError(err error) { constant DB_PORT (line 17) | DB_PORT = "9191" constant DB_URL (line 18) | DB_URL = "127.0.0.1" function main (line 21) | func main() { FILE: fa/code/src/mymath/sqrt.go function Sqrt (line 6) | func Sqrt(x float64) float64 { FILE: ja/build.go type Visitor (line 15) | type Visitor struct method md2html (line 17) | func (self *Visitor) md2html(arg map[string]string) error { function FixHeader (line 77) | func FixHeader(input string) string { function RemoveFooterLink (line 87) | func RemoveFooterLink(input string) string { function RemoveImageLinkSuffix (line 92) | func RemoveImageLinkSuffix(input string) string { function main (line 97) | func main() { FILE: ja/src/1.2/main.go function main (line 11) | func main() { FILE: ja/src/1.2/sqrt.go function Sqrt (line 5) | func Sqrt(x float64) float64 { FILE: pt-br/code/src/apps/ch.1.2/main.go function main (line 12) | func main() { FILE: pt-br/code/src/apps/ch.2.1/main.go function main (line 9) | func main() { FILE: pt-br/code/src/apps/ch.2.2/main.go constant Pi (line 11) | Pi = 3.1415926 constant i (line 19) | i = 1e4 constant MaxThread (line 20) | MaxThread = 10 constant prefix (line 21) | prefix = "astaxie_" function show_multiple_assignments (line 29) | func show_multiple_assignments() { function show_bool (line 49) | func show_bool() { function show_different_types (line 58) | func show_different_types() { function show_strings (line 79) | func show_strings() { function show_string_manipulation (line 93) | func show_string_manipulation() { function show_errors (line 115) | func show_errors() { function show_iota (line 122) | func show_iota() { function This_is_public (line 145) | func This_is_public() {} function this_is_private (line 146) | func this_is_private() {} function set_default_values (line 148) | func set_default_values() { function show_arrays (line 164) | func show_arrays() { function show_slices (line 196) | func show_slices() { function show_map (line 237) | func show_map() { function main (line 265) | func main() { FILE: pt-br/code/src/apps/ch.2.2/what_is_wrong_with_this/main.go function main (line 6) | func main() { FILE: pt-br/code/src/apps/ch.2.3/basic_functions/main.go function max (line 8) | func max(a, b int) int { function main (line 15) | func main() { FILE: pt-br/code/src/apps/ch.2.3/hidden_print_methods/main.go function f (line 7) | func f() { function main (line 12) | func main() { FILE: pt-br/code/src/apps/ch.2.3/import_packages/main.go function main (line 19) | func main() { FILE: pt-br/code/src/apps/ch.2.3/import_packages/only_call_init/only_call_init.go function init (line 5) | func init() { FILE: pt-br/code/src/apps/ch.2.3/main.go function computedValue (line 7) | func computedValue() int { function show_if (line 10) | func show_if() { function show_if_var (line 31) | func show_if_var() { function show_goto (line 43) | func show_goto() { function show_for_loop (line 54) | func show_for_loop() { function show_loop_through_map (line 78) | func show_loop_through_map() { function show_switch (line 91) | func show_switch() { function show_defer (line 127) | func show_defer() { function main (line 134) | func main() { FILE: pt-br/code/src/apps/ch.2.3/panic_and_recover/main.go function check_user (line 12) | func check_user() { function throwsPanic (line 18) | func throwsPanic(f func()) (b bool) { function main (line 28) | func main(){ FILE: pt-br/code/src/apps/ch.2.3/pass_by_value_and_pointer/main.go function add_by_value (line 7) | func add_by_value(a int) int { function add_by_reference (line 11) | func add_by_reference(a *int) int { function show_add_by_value (line 15) | func show_add_by_value() { function show_add_by_reference (line 21) | func show_add_by_reference() { function main (line 28) | func main() { FILE: pt-br/code/src/apps/ch.2.3/type_function/main.go type testInt (line 7) | type testInt function isOdd (line 9) | func isOdd(integer int) bool { function isEven (line 16) | func isEven(integer int) bool { function filter (line 25) | func filter(slice []int, f testInt) []int { function init (line 34) | func init() { function main (line 37) | func main() { FILE: pt-br/code/src/apps/ch.2.3/variadic_functions/main.go function SumAndProduct (line 8) | func SumAndProduct(A, B int) (int, int) { function main (line 12) | func main() { FILE: pt-br/code/src/apps/ch.2.4/compare_age/main.go type person (line 8) | type person struct function Older (line 15) | func Older(p1, p2 person) (person, int) { function main (line 22) | func main() { FILE: pt-br/code/src/apps/ch.2.4/embedded_structs/main.go type Human (line 7) | type Human struct type Student (line 13) | type Student struct function main (line 18) | func main() { FILE: pt-br/code/src/apps/ch.2.4/embedded_structs2/main.go type Skills (line 7) | type Skills type Human (line 9) | type Human struct type Student (line 15) | type Student struct function main (line 22) | func main() { FILE: pt-br/code/src/apps/ch.2.4/embedded_structs_with_name_conflict/main.go type Human (line 7) | type Human struct type Employee (line 13) | type Employee struct function main (line 19) | func main() { FILE: pt-br/code/src/apps/ch.2.4/main.go function show_basic_struct (line 7) | func show_basic_struct() { function show_anonymous_struct (line 27) | func show_anonymous_struct() { function main (line 36) | func main() { FILE: pt-br/code/src/apps/ch.2.5/attach_methods_to_struct/main.go type Rectangle (line 10) | type Rectangle struct method area (line 18) | func (r Rectangle) area() float64 { type Circle (line 14) | type Circle struct method area (line 22) | func (c Circle) area() float64 { function main (line 26) | func main() { FILE: pt-br/code/src/apps/ch.2.5/box_example/main.go constant WHITE (line 6) | WHITE = iota constant BLACK (line 7) | BLACK constant BLUE (line 8) | BLUE constant RED (line 9) | RED constant YELLOW (line 10) | YELLOW type Color (line 13) | type Color method String (line 48) | func (c Color) String() string { type Box (line 15) | type Box struct method Volume (line 22) | func (b Box) Volume() float64 { method SetColor (line 26) | func (b *Box) SetColor(c Color) { type BoxList (line 20) | type BoxList method BiggestsColor (line 30) | func (bl BoxList) BiggestsColor() Color { method PaintItBlack (line 42) | func (bl BoxList) PaintItBlack() { function main (line 53) | func main() { FILE: pt-br/code/src/apps/ch.2.5/embedded_method/main.go type Human (line 4) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 10) | type Student struct type Employee (line 15) | type Employee struct function main (line 25) | func main() { FILE: pt-br/code/src/apps/ch.2.5/method_overload/main.go type Human (line 5) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 11) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 25) | func (e *Employee) SayHi() { function main (line 30) | func main() { FILE: pt-br/code/src/apps/ch.2.5/pass_struct_to_method/main.go type Rectangle (line 5) | type Rectangle struct function area (line 9) | func area(r Rectangle) float64 { function main (line 13) | func main() { FILE: pt-br/code/src/apps/ch.2.6/interface/main.go type Human (line 4) | type Human struct method SayHi (line 22) | func (h Human) SayHi() { method Sing (line 26) | func (h Human) Sing(lyrics string) { type Student (line 10) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 30) | func (e Employee) SayHi() { type Men (line 36) | type Men interface function main (line 41) | func main() { FILE: pt-br/code/src/apps/ch.2.6/reflection/main.go function show_interface_none (line 8) | func show_interface_none() { function show_reflection (line 16) | func show_reflection() { function main (line 30) | func main() { FILE: pt-br/code/src/apps/ch.2.6/stringer_interface/main.go type Human (line 8) | type Human struct method String (line 15) | func (h Human) String() string { function main (line 19) | func main() { FILE: pt-br/code/src/apps/ch.2.6/switch_type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: pt-br/code/src/apps/ch.2.6/type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: pt-br/code/src/apps/ch.2.7/buffered_channel/main.go function main (line 7) | func main() { FILE: pt-br/code/src/apps/ch.2.7/goroutine/main.go function say (line 10) | func say(s string) { function main (line 17) | func main() { FILE: pt-br/code/src/apps/ch.2.7/range_and_close_channel/main.go function fibonacci (line 9) | func fibonacci(n int, c chan int) { function main (line 18) | func main() { FILE: pt-br/code/src/apps/ch.2.7/select_channel/main.go function fibonacci (line 7) | func fibonacci(c, quit chan int) { function main (line 20) | func main() { FILE: pt-br/code/src/apps/ch.2.7/timeout/main.go function main (line 11) | func main() { FILE: pt-br/code/src/apps/ch.2.7/unbuffered_channel/main.go function sum (line 7) | func sum(a []int, c chan int) { function main (line 15) | func main() { FILE: pt-br/code/src/apps/ch.3.2/main.go function sayhelloName (line 12) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 25) | func main() { FILE: pt-br/code/src/apps/ch.3.4/main.go type MyMux (line 11) | type MyMux struct method ServeHTTP (line 14) | func (p *MyMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { function sayhelloName (line 23) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 27) | func main() { FILE: pt-br/code/src/apps/ch.4.1/main.go function sayhelloName (line 14) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function login (line 28) | func login(w http.ResponseWriter, r *http.Request) { function main (line 41) | func main() { FILE: pt-br/code/src/apps/ch.4.2/main.go constant PORT (line 15) | PORT = "9090" constant HOST_URL (line 16) | HOST_URL = "http://localhost:" + PORT type Links (line 21) | type Links struct function index (line 28) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 31) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 34) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 50) | func main() { FILE: pt-br/code/src/apps/ch.4.2/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: pt-br/code/src/apps/ch.4.3/main.go function index (line 13) | func index(w http.ResponseWriter, r *http.Request) { function templateHandler (line 23) | func templateHandler(w http.ResponseWriter, r *http.Request) { function main (line 35) | func main() { FILE: pt-br/code/src/apps/ch.4.4/main.go constant PORT (line 16) | PORT = "9090" constant HOST_URL (line 17) | HOST_URL = "http://localhost:" + PORT function index (line 23) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 26) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 29) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 45) | func main() { FILE: pt-br/code/src/apps/ch.4.4/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: pt-br/code/src/apps/ch.4.4/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: pt-br/code/src/apps/ch.4.5/client_upload/main.go function checkError (line 13) | func checkError(err error) { function postFile (line 18) | func postFile(filename string, targetUrl string) { function main (line 42) | func main() { FILE: pt-br/code/src/apps/ch.4.5/main.go constant MiB_UNIT (line 16) | MiB_UNIT = 1 << 20 function checkError (line 21) | func checkError(err error) { function indexHandler (line 26) | func indexHandler(w http.ResponseWriter, r *http.Request) { function uploadHandler (line 30) | func uploadHandler(w http.ResponseWriter, r *http.Request) { function saveUpload (line 44) | func saveUpload(file multipart.File, handler *multipart.FileHeader) { function init (line 54) | func init() { function main (line 59) | func main() { FILE: pt-br/code/src/apps/ch.4.5/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: pt-br/code/src/apps/ch.4.5/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: pt-br/code/src/apps/ch.5.2/main.go constant DB_USER (line 12) | DB_USER = "user" constant DB_PASSWORD (line 13) | DB_PASSWORD = "" constant DB_NAME (line 14) | DB_NAME = "test" function main (line 17) | func main() { function checkErr (line 72) | func checkErr(err error) { FILE: pt-br/code/src/apps/ch.5.2/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: pt-br/code/src/apps/ch.5.3/main.go constant DB_PATH (line 12) | DB_PATH = "./foo.db" function main (line 14) | func main() { function checkErr (line 68) | func checkErr(err error) { FILE: pt-br/code/src/apps/ch.5.3/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: pt-br/code/src/apps/ch.5.4/main.go constant DB_USER (line 14) | DB_USER = "user" constant DB_PASSWORD (line 15) | DB_PASSWORD = "" constant DB_NAME (line 16) | DB_NAME = "test" function main (line 19) | func main() { function checkErr (line 74) | func checkErr(err error) { FILE: pt-br/code/src/apps/ch.5.4/schema.sql type userinfo (line 1) | CREATE TABLE userinfo FILE: pt-br/code/src/apps/ch.5.5/main.go type Userinfo (line 15) | type Userinfo struct constant DB_PATH (line 22) | DB_PATH = "./foo.db" function checkError (line 24) | func checkError(err error) { function getTimeStamp (line 29) | func getTimeStamp() string { function insertUsingStruct (line 32) | func insertUsingStruct() int64 { function insertUsingMap (line 42) | func insertUsingMap() int64 { function getOneUserInfo (line 54) | func getOneUserInfo(id int64) Userinfo { function getAllUserInfo (line 61) | func getAllUserInfo(id int64) []Userinfo { function updateUserinfo (line 68) | func updateUserinfo(id int64) { function updateUsingMap (line 79) | func updateUsingMap(id int64) { function getMapsFromSelect (line 91) | func getMapsFromSelect(id int64) []map[string][]byte { function groupby (line 101) | func groupby() { function joinTables (line 109) | func joinTables(id int64) { function deleteWithUserinfo (line 117) | func deleteWithUserinfo(id int64) { function deleteRows (line 125) | func deleteRows() { function deleteAllUserinfo (line 133) | func deleteAllUserinfo(id int64) { function main (line 141) | func main() { FILE: pt-br/code/src/apps/ch.5.5/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( type `userdetail` (line 7) | CREATE TABLE `userdetail` ( FILE: pt-br/code/src/apps/ch.5.6/mongodb/main.go type Person (line 11) | type Person struct function checkError (line 16) | func checkError(err error) { constant DB_NAME (line 23) | DB_NAME = "test" constant DB_COLLECTION (line 24) | DB_COLLECTION = "people" function main (line 27) | func main() { FILE: pt-br/code/src/apps/ch.5.6/redis/main.go function checkError (line 10) | func checkError(err error) { constant DB_PORT (line 17) | DB_PORT = "9191" constant DB_URL (line 18) | DB_URL = "127.0.0.1" function main (line 21) | func main() { FILE: pt-br/code/src/mymath/sqrt.go function Sqrt (line 6) | func Sqrt(x float64) float64 { FILE: th/build.go type Visitor (line 15) | type Visitor struct method md2html (line 17) | func (self *Visitor) md2html(arg map[string]string) error { function FixHeader (line 77) | func FixHeader(input string) string { function RemoveFooterLink (line 87) | func RemoveFooterLink(input string) string { function RemoveImageLinkSuffix (line 92) | func RemoveImageLinkSuffix(input string) string { function main (line 97) | func main() { FILE: th/code/src/apps/ch.1.2/main.go function main (line 12) | func main() { FILE: th/code/src/apps/ch.2.1/main.go function main (line 9) | func main() { FILE: th/code/src/apps/ch.2.2/main.go constant Pi (line 11) | Pi = 3.1415926 constant i (line 19) | i = 1e4 constant MaxThread (line 20) | MaxThread = 10 constant prefix (line 21) | prefix = "astaxie_" function show_multiple_assignments (line 29) | func show_multiple_assignments() { function show_bool (line 49) | func show_bool() { function show_different_types (line 58) | func show_different_types() { function show_strings (line 79) | func show_strings() { function show_string_manipulation (line 93) | func show_string_manipulation() { function show_errors (line 115) | func show_errors() { function show_iota (line 122) | func show_iota() { function This_is_public (line 145) | func This_is_public() {} function this_is_private (line 146) | func this_is_private() {} function set_default_values (line 148) | func set_default_values() { function show_arrays (line 164) | func show_arrays() { function show_slices (line 196) | func show_slices() { function show_map (line 237) | func show_map() { function main (line 265) | func main() { FILE: th/code/src/apps/ch.2.2/what_is_wrong_with_this/main.go function main (line 6) | func main() { FILE: th/code/src/apps/ch.2.3/basic_functions/main.go function max (line 8) | func max(a, b int) int { function main (line 15) | func main() { FILE: th/code/src/apps/ch.2.3/hidden_print_methods/main.go function f (line 7) | func f() { function main (line 12) | func main() { FILE: th/code/src/apps/ch.2.3/import_packages/main.go function main (line 20) | func main() { FILE: th/code/src/apps/ch.2.3/import_packages/only_call_init/only_call_init.go function init (line 5) | func init() { FILE: th/code/src/apps/ch.2.3/main.go function computedValue (line 7) | func computedValue() int { function show_if (line 10) | func show_if() { function show_if_var (line 31) | func show_if_var() { function show_goto (line 43) | func show_goto() { function show_for_loop (line 54) | func show_for_loop() { function show_loop_through_map (line 78) | func show_loop_through_map() { function show_switch (line 91) | func show_switch() { function show_defer (line 127) | func show_defer() { function main (line 134) | func main() { FILE: th/code/src/apps/ch.2.3/panic_and_recover/main.go function check_user (line 12) | func check_user() { function throwsPanic (line 18) | func throwsPanic(f func()) (b bool) { function main (line 28) | func main(){ FILE: th/code/src/apps/ch.2.3/pass_by_value_and_pointer/main.go function add_by_value (line 7) | func add_by_value(a int) int { function add_by_reference (line 11) | func add_by_reference(a *int) int { function show_add_by_value (line 15) | func show_add_by_value() { function show_add_by_reference (line 21) | func show_add_by_reference() { function main (line 28) | func main() { FILE: th/code/src/apps/ch.2.3/type_function/main.go type testInt (line 7) | type testInt function isOdd (line 9) | func isOdd(integer int) bool { function isEven (line 16) | func isEven(integer int) bool { function filter (line 25) | func filter(slice []int, f testInt) []int { function init (line 34) | func init() { function main (line 37) | func main() { FILE: th/code/src/apps/ch.2.3/variadic_functions/main.go function SumAndProduct (line 8) | func SumAndProduct(A, B int) (int, int) { function main (line 12) | func main() { FILE: th/code/src/apps/ch.2.4/compare_age/main.go type person (line 8) | type person struct function Older (line 15) | func Older(p1, p2 person) (person, int) { function main (line 22) | func main() { FILE: th/code/src/apps/ch.2.4/embedded_structs/main.go type Human (line 7) | type Human struct type Student (line 13) | type Student struct function main (line 18) | func main() { FILE: th/code/src/apps/ch.2.4/embedded_structs2/main.go type Skills (line 7) | type Skills type Human (line 9) | type Human struct type Student (line 15) | type Student struct function main (line 22) | func main() { FILE: th/code/src/apps/ch.2.4/embedded_structs_with_name_conflict/main.go type Human (line 7) | type Human struct type Employee (line 13) | type Employee struct function main (line 19) | func main() { FILE: th/code/src/apps/ch.2.4/main.go function show_basic_struct (line 7) | func show_basic_struct() { function show_anonymous_struct (line 27) | func show_anonymous_struct() { function main (line 36) | func main() { FILE: th/code/src/apps/ch.2.5/attach_methods_to_struct/main.go type Rectangle (line 10) | type Rectangle struct method area (line 18) | func (r Rectangle) area() float64 { type Circle (line 14) | type Circle struct method area (line 22) | func (c Circle) area() float64 { function main (line 26) | func main() { FILE: th/code/src/apps/ch.2.5/box_example/main.go constant WHITE (line 6) | WHITE = iota constant BLACK (line 7) | BLACK constant BLUE (line 8) | BLUE constant RED (line 9) | RED constant YELLOW (line 10) | YELLOW type Color (line 13) | type Color method String (line 48) | func (c Color) String() string { type Box (line 15) | type Box struct method Volume (line 22) | func (b Box) Volume() float64 { method SetColor (line 26) | func (b *Box) SetColor(c Color) { type BoxList (line 20) | type BoxList method BiggestsColor (line 30) | func (bl BoxList) BiggestsColor() Color { method PaintItBlack (line 42) | func (bl BoxList) PaintItBlack() { function main (line 53) | func main() { FILE: th/code/src/apps/ch.2.5/embedded_method/main.go type Human (line 4) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 10) | type Student struct type Employee (line 15) | type Employee struct function main (line 25) | func main() { FILE: th/code/src/apps/ch.2.5/method_overload/main.go type Human (line 5) | type Human struct method SayHi (line 21) | func (h *Human) SayHi() { type Student (line 11) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 25) | func (e *Employee) SayHi() { function main (line 30) | func main() { FILE: th/code/src/apps/ch.2.5/pass_struct_to_method/main.go type Rectangle (line 5) | type Rectangle struct function area (line 9) | func area(r Rectangle) float64 { function main (line 13) | func main() { FILE: th/code/src/apps/ch.2.6/interface/main.go type Human (line 4) | type Human struct method SayHi (line 22) | func (h Human) SayHi() { method Sing (line 26) | func (h Human) Sing(lyrics string) { type Student (line 10) | type Student struct type Employee (line 16) | type Employee struct method SayHi (line 30) | func (e Employee) SayHi() { type Men (line 36) | type Men interface function main (line 41) | func main() { FILE: th/code/src/apps/ch.2.6/reflection/main.go function show_interface_none (line 8) | func show_interface_none() { function show_reflection (line 16) | func show_reflection() { function main (line 30) | func main() { FILE: th/code/src/apps/ch.2.6/stringer_interface/main.go type Human (line 8) | type Human struct method String (line 15) | func (h Human) String() string { function main (line 19) | func main() { FILE: th/code/src/apps/ch.2.6/switch_type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: th/code/src/apps/ch.2.6/type_check/main.go type Element (line 8) | type Element interface type List (line 9) | type List type Person (line 11) | type Person struct method String (line 16) | func (p Person) String() string { function main (line 20) | func main() { FILE: th/code/src/apps/ch.2.7/buffered_channel/main.go function main (line 7) | func main() { FILE: th/code/src/apps/ch.2.7/goroutine/main.go function say (line 10) | func say(s string) { function main (line 17) | func main() { FILE: th/code/src/apps/ch.2.7/range_and_close_channel/main.go function fibonacci (line 9) | func fibonacci(n int, c chan int) { function main (line 18) | func main() { FILE: th/code/src/apps/ch.2.7/select_channel/main.go function fibonacci (line 7) | func fibonacci(c, quit chan int) { function main (line 20) | func main() { FILE: th/code/src/apps/ch.2.7/timeout/main.go function main (line 11) | func main() { FILE: th/code/src/apps/ch.2.7/unbuffered_channel/main.go function sum (line 7) | func sum(a []int, c chan int) { function main (line 15) | func main() { FILE: th/code/src/apps/ch.3.2/main.go function sayhelloName (line 12) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 25) | func main() { FILE: th/code/src/apps/ch.3.4/main.go type MyMux (line 11) | type MyMux struct method ServeHTTP (line 14) | func (p *MyMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { function sayhelloName (line 23) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function main (line 27) | func main() { FILE: th/code/src/apps/ch.4.1/main.go function sayhelloName (line 14) | func sayhelloName(w http.ResponseWriter, r *http.Request) { function login (line 28) | func login(w http.ResponseWriter, r *http.Request) { function main (line 41) | func main() { FILE: th/code/src/apps/ch.4.2/main.go constant PORT (line 15) | PORT = "9090" constant HOST_URL (line 16) | HOST_URL = "http://localhost:" + PORT type Links (line 21) | type Links struct function index (line 28) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 31) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 34) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 50) | func main() { FILE: th/code/src/apps/ch.4.2/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: th/code/src/apps/ch.4.3/main.go function index (line 13) | func index(w http.ResponseWriter, r *http.Request) { function templateHandler (line 23) | func templateHandler(w http.ResponseWriter, r *http.Request) { function main (line 35) | func main() { FILE: th/code/src/apps/ch.4.4/main.go constant PORT (line 16) | PORT = "9090" constant HOST_URL (line 17) | HOST_URL = "http://localhost:" + PORT function index (line 23) | func index(w http.ResponseWriter, r *http.Request) { function profileHandler (line 26) | func profileHandler(w http.ResponseWriter, r *http.Request) { function checkProfile (line 29) | func checkProfile(w http.ResponseWriter, r *http.Request) { function init (line 41) | func init() { function main (line 45) | func main() { FILE: th/code/src/apps/ch.4.4/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: th/code/src/apps/ch.4.4/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: th/code/src/apps/ch.4.5/client_upload/main.go function checkError (line 13) | func checkError(err error) { function postFile (line 18) | func postFile(filename string, targetUrl string) { function main (line 42) | func main() { FILE: th/code/src/apps/ch.4.5/main.go constant MiB_UNIT (line 16) | MiB_UNIT = 1 << 20 function checkError (line 21) | func checkError(err error) { function indexHandler (line 26) | func indexHandler(w http.ResponseWriter, r *http.Request) { function uploadHandler (line 30) | func uploadHandler(w http.ResponseWriter, r *http.Request) { function saveUpload (line 44) | func saveUpload(file multipart.File, handler *multipart.FileHeader) { function init (line 54) | func init() { function main (line 59) | func main() { FILE: th/code/src/apps/ch.4.5/nonce/main.go type Nonce (line 16) | type Nonce struct type Nonces (line 21) | type Nonces struct method NewNonce (line 28) | func (n *Nonces) NewNonce() Nonce { method NewToken (line 33) | func (n *Nonces) NewToken() string { method HasToken (line 42) | func (n *Nonces) HasToken(token string) bool { method MarkToken (line 45) | func (n *Nonces) MarkToken(token string) { method CheckToken (line 48) | func (n *Nonces) CheckToken(token string) error { method CheckThenMarkToken (line 57) | func (n *Nonces) CheckThenMarkToken(token string) error { function New (line 25) | func New() Nonces { function createToken (line 64) | func createToken() string { FILE: th/code/src/apps/ch.4.5/validator/main.go type ProfilePage (line 14) | type ProfilePage struct method GetErrors (line 23) | func (p *ProfilePage) GetErrors() Errors { type Errors (line 17) | type Errors struct constant mmddyyyyForm (line 46) | mmddyyyyForm = "01/02/2006" constant yyyymmddForm (line 47) | yyyymmddForm = "2006-01-02" function doSlicesIntersect (line 66) | func doSlicesIntersect(s1, s2 []string) bool { function isElementInSlice (line 77) | func isElementInSlice(str string, sl []string) bool { function checkChineseName (line 90) | func checkChineseName(str string) error { function checkUsername (line 100) | func checkUsername(str string) error { function checkAge (line 108) | func checkAge(str string) error { function checkEmail (line 121) | func checkEmail(str string) error { function checkDate (line 130) | func checkDate(str string) error { function checkGender (line 142) | func checkGender(str string) error { function checkSibling (line 154) | func checkSibling(strs []string) error { function checkShirtSize (line 166) | func checkShirtSize(str string) error { FILE: th/code/src/apps/ch.5.2/main.go constant DB_USER (line 12) | DB_USER = "user" constant DB_PASSWORD (line 13) | DB_PASSWORD = "" constant DB_NAME (line 14) | DB_NAME = "test" function main (line 17) | func main() { function checkErr (line 72) | func checkErr(err error) { FILE: th/code/src/apps/ch.5.2/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: th/code/src/apps/ch.5.3/main.go constant DB_PATH (line 12) | DB_PATH = "./foo.db" function main (line 14) | func main() { function checkErr (line 68) | func checkErr(err error) { FILE: th/code/src/apps/ch.5.3/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( FILE: th/code/src/apps/ch.5.4/main.go constant DB_USER (line 14) | DB_USER = "user" constant DB_PASSWORD (line 15) | DB_PASSWORD = "" constant DB_NAME (line 16) | DB_NAME = "test" function main (line 19) | func main() { function checkErr (line 74) | func checkErr(err error) { FILE: th/code/src/apps/ch.5.4/schema.sql type userinfo (line 1) | CREATE TABLE userinfo FILE: th/code/src/apps/ch.5.5/main.go type Userinfo (line 15) | type Userinfo struct constant DB_PATH (line 22) | DB_PATH = "./foo.db" function checkError (line 24) | func checkError(err error) { function getTimeStamp (line 29) | func getTimeStamp() string { function insertUsingStruct (line 32) | func insertUsingStruct() int64 { function insertUsingMap (line 42) | func insertUsingMap() int64 { function getOneUserInfo (line 54) | func getOneUserInfo(id int64) Userinfo { function getAllUserInfo (line 61) | func getAllUserInfo(id int64) []Userinfo { function updateUserinfo (line 68) | func updateUserinfo(id int64) { function updateUsingMap (line 79) | func updateUsingMap(id int64) { function getMapsFromSelect (line 91) | func getMapsFromSelect(id int64) []map[string][]byte { function groupby (line 101) | func groupby() { function joinTables (line 109) | func joinTables(id int64) { function deleteWithUserinfo (line 117) | func deleteWithUserinfo(id int64) { function deleteRows (line 125) | func deleteRows() { function deleteAllUserinfo (line 133) | func deleteAllUserinfo(id int64) { function main (line 141) | func main() { FILE: th/code/src/apps/ch.5.5/schema.sql type `userinfo` (line 1) | CREATE TABLE `userinfo` ( type `userdetail` (line 7) | CREATE TABLE `userdetail` ( FILE: th/code/src/apps/ch.5.6/mongodb/main.go type Person (line 11) | type Person struct function checkError (line 16) | func checkError(err error) { constant DB_NAME (line 23) | DB_NAME = "test" constant DB_COLLECTION (line 24) | DB_COLLECTION = "people" function main (line 27) | func main() { FILE: th/code/src/apps/ch.5.6/redis/main.go function checkError (line 10) | func checkError(err error) { constant DB_PORT (line 17) | DB_PORT = "9191" constant DB_URL (line 18) | DB_URL = "127.0.0.1" function main (line 21) | func main() { FILE: th/code/src/mymath/sqrt.go function Sqrt (line 6) | func Sqrt(x float64) float64 { FILE: th/src/1.2/main.go function main (line 11) | func main() { FILE: th/src/1.2/sqrt.go function Sqrt (line 5) | func Sqrt(x float64) float64 { FILE: zh-tw/a_herf.go function dir (line 10) | func dir()([]string,error) { function htmlfile (line 36) | func htmlfile(filename string,next_path string,last_path string)(error){ function nextandlast (line 62) | func nextandlast(filenames []string,index int )(filename string,next_pat... function main (line 81) | func main(){ FILE: zh-tw/build.go type Visitor (line 15) | type Visitor struct method md2html (line 17) | func (self *Visitor) md2html(arg map[string]string) error { function FixHeader (line 86) | func FixHeader(input string) string { function RemoveFooterLink (line 96) | func RemoveFooterLink(input string) string { function RemoveImageLinkSuffix (line 101) | func RemoveImageLinkSuffix(input string) string { function main (line 106) | func main() { FILE: zh-tw/build_new.go constant token (line 15) | token = "" type Visitor (line 18) | type Visitor struct method md2html (line 20) | func (self *Visitor) md2html(arg map[string]string) error { function FixHeader (line 109) | func FixHeader(input string) string { function RemoveFooterLink (line 119) | func RemoveFooterLink(input string) string { function RemoveImageLinkSuffix (line 124) | func RemoveImageLinkSuffix(input string) string { function main (line 129) | func main() { FILE: zh-tw/src/1.2/main.go function main (line 11) | func main() { FILE: zh-tw/src/1.2/sqrt.go function Sqrt (line 5) | func Sqrt(x float64) float64 { FILE: zh/a_herf.go function dir (line 10) | func dir()([]string,error) { function htmlfile (line 36) | func htmlfile(filename string,next_path string,last_path string)(error){ function nextandlast (line 62) | func nextandlast(filenames []string,index int )(filename string,next_pat... function main (line 81) | func main(){ FILE: zh/build.go type Visitor (line 15) | type Visitor struct method md2html (line 17) | func (self *Visitor) md2html(arg map[string]string) error { function FixHeader (line 86) | func FixHeader(input string) string { function RemoveFooterLink (line 96) | func RemoveFooterLink(input string) string { function RemoveImageLinkSuffix (line 101) | func RemoveImageLinkSuffix(input string) string { function main (line 106) | func main() { FILE: zh/build_new.go constant token (line 15) | token = "" type Visitor (line 18) | type Visitor struct method md2html (line 20) | func (self *Visitor) md2html(arg map[string]string) error { function FixHeader (line 109) | func FixHeader(input string) string { function RemoveFooterLink (line 119) | func RemoveFooterLink(input string) string { function RemoveImageLinkSuffix (line 124) | func RemoveImageLinkSuffix(input string) string { function main (line 129) | func main() {