-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
653 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-444 KB
(0.029%)
...entations/2023-10-09--generating-audio--schollz/2023-10-09--generating-audio--schollz.pdf
Binary file not shown.
Binary file modified
BIN
-943 KB
(0.014%)
presentations/2024-03-23--seoul-go-to-gno--leon/Go_to_Gno_slides.pdf
Binary file not shown.
Binary file modified
BIN
-1.4 MB
(0.0090%)
presentations/2024-04-11--tokyo-intro-to-gno--leon/Intro to Gno Tokyo.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>Talks - The Go Programming Language</title> | ||
<link type="text/css" rel="stylesheet" href="../static/dir.css"> | ||
<script src="../static/dir.js"></script> | ||
<script> | ||
|
||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") { | ||
var _gaq = _gaq || []; | ||
_gaq.push(["_setAccount", "UA-11222381-6"]); | ||
_gaq.push(["b._setAccount", "UA-49880327-6"]); | ||
window.trackPageview = function() { | ||
_gaq.push(["_trackPageview", location.pathname+location.hash]); | ||
_gaq.push(["b._trackPageview", location.pathname+location.hash]); | ||
}; | ||
window.trackPageview(); | ||
window.trackEvent = function(category, action, opt_label, opt_value, opt_noninteraction) { | ||
_gaq.push(["_trackEvent", category, action, opt_label, opt_value, opt_noninteraction]); | ||
_gaq.push(["b._trackEvent", category, action, opt_label, opt_value, opt_noninteraction]); | ||
}; | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<div id="topbar"><div class="container"> | ||
|
||
<form method="GET" action="http://golang.org/search"> | ||
<div id="menu"> | ||
<a href="http://golang.org/doc/">Documents</a> | ||
<a href="http://golang.org/ref">References</a> | ||
<a href="http://golang.org/pkg/">Packages</a> | ||
<a href="http://golang.org/project/">The Project</a> | ||
<a href="http://golang.org/help/">Help</a> | ||
<input type="text" id="search" name="q" class="inactive" value="Search"> | ||
</div> | ||
<div id="heading"><a href="../index.html">The Go Programming Language</a></div> | ||
</form> | ||
|
||
</div></div> | ||
|
||
<div id="page"> | ||
|
||
<h1>Go talks</h1> | ||
|
||
<h2>presentations/2024-06-17--gophercon-berlin--manfred</h2> | ||
|
||
|
||
|
||
|
||
<h4>Slide decks:</h4> | ||
<dl> | ||
|
||
<dd><a href="2024-06-17--gophercon-berlin--manfred/presentation.slide.html">presentation.slide</a>: Envisioning a Go-Powered Ecosystem: The Ultimate Go Computer</dd> | ||
|
||
</dl> | ||
|
||
|
||
|
||
|
||
|
||
<h4>Sub-directories:</h4> | ||
<dl> | ||
|
||
<dd><a href="2024-06-17--gophercon-berlin--manfred/code.html">code</a></dd> | ||
|
||
</dl> | ||
|
||
|
||
</div> | ||
|
||
<div id="footer"> | ||
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>, | ||
the content of this page is licensed under the | ||
Creative Commons Attribution 3.0 License, | ||
and code is licensed under a <a href="http://golang.org/LICENSE">BSD license</a>.<br> | ||
<a href="http://golang.org/doc/tos.html">Terms of Service</a> | | ||
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a> | ||
</div> | ||
|
||
<script> | ||
(function() { | ||
|
||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") { | ||
var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true; | ||
ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js"; | ||
var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s); | ||
} | ||
})(); | ||
</script> | ||
</body> | ||
</html> |
107 changes: 107 additions & 0 deletions
107
presentations/2024-06-17--gophercon-berlin--manfred/code.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>Talks - The Go Programming Language</title> | ||
<link type="text/css" rel="stylesheet" href="../../static/dir.css"> | ||
<script src="../../static/dir.js"></script> | ||
<script> | ||
|
||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") { | ||
var _gaq = _gaq || []; | ||
_gaq.push(["_setAccount", "UA-11222381-6"]); | ||
_gaq.push(["b._setAccount", "UA-49880327-6"]); | ||
window.trackPageview = function() { | ||
_gaq.push(["_trackPageview", location.pathname+location.hash]); | ||
_gaq.push(["b._trackPageview", location.pathname+location.hash]); | ||
}; | ||
window.trackPageview(); | ||
window.trackEvent = function(category, action, opt_label, opt_value, opt_noninteraction) { | ||
_gaq.push(["_trackEvent", category, action, opt_label, opt_value, opt_noninteraction]); | ||
_gaq.push(["b._trackEvent", category, action, opt_label, opt_value, opt_noninteraction]); | ||
}; | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<div id="topbar"><div class="container"> | ||
|
||
<form method="GET" action="http://golang.org/search"> | ||
<div id="menu"> | ||
<a href="http://golang.org/doc/">Documents</a> | ||
<a href="http://golang.org/ref">References</a> | ||
<a href="http://golang.org/pkg/">Packages</a> | ||
<a href="http://golang.org/project/">The Project</a> | ||
<a href="http://golang.org/help/">Help</a> | ||
<input type="text" id="search" name="q" class="inactive" value="Search"> | ||
</div> | ||
<div id="heading"><a href="../../index.html">The Go Programming Language</a></div> | ||
</form> | ||
|
||
</div></div> | ||
|
||
<div id="page"> | ||
|
||
<h1>Go talks</h1> | ||
|
||
<h2>presentations/2024-06-17--gophercon-berlin--manfred/code</h2> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<h4>Files:</h4> | ||
<dl> | ||
|
||
<dd><a href="code/no-compile-after.go">no-compile-after.go</a></dd> | ||
|
||
<dd><a href="code/no-compile-before.go">no-compile-before.go</a></dd> | ||
|
||
<dd><a href="code/no-flag-additional.go">no-flag-additional.go</a></dd> | ||
|
||
<dd><a href="code/no-flag-after.go">no-flag-after.go</a></dd> | ||
|
||
<dd><a href="code/no-flag-before.go">no-flag-before.go</a></dd> | ||
|
||
<dd><a href="code/no-fs-after.go">no-fs-after.go</a></dd> | ||
|
||
<dd><a href="code/no-fs-before.go">no-fs-before.go</a></dd> | ||
|
||
<dd><a href="code/no-main-after.go">no-main-after.go</a></dd> | ||
|
||
<dd><a href="code/no-main-before.go">no-main-before.go</a></dd> | ||
|
||
<dd><a href="code/no-marshaling-after.go">no-marshaling-after.go</a></dd> | ||
|
||
<dd><a href="code/no-marshaling-before.go">no-marshaling-before.go</a></dd> | ||
|
||
</dl> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
<div id="footer"> | ||
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>, | ||
the content of this page is licensed under the | ||
Creative Commons Attribution 3.0 License, | ||
and code is licensed under a <a href="http://golang.org/LICENSE">BSD license</a>.<br> | ||
<a href="http://golang.org/doc/tos.html">Terms of Service</a> | | ||
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a> | ||
</div> | ||
|
||
<script> | ||
(function() { | ||
|
||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") { | ||
var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true; | ||
ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js"; | ||
var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s); | ||
} | ||
})(); | ||
</script> | ||
</body> | ||
</html> |
3 changes: 3 additions & 0 deletions
3
presentations/2024-06-17--gophercon-berlin--manfred/code/no-compile-after.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Unified approach | ||
import "my/package" | ||
mypackage.MyFunc() |
10 changes: 10 additions & 0 deletions
10
presentations/2024-06-17--gophercon-berlin--manfred/code/no-compile-before.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Current approach | ||
// Compile and run the binary from the CLI | ||
// $ go build -o myapp | ||
// $ ./myapp | ||
|
||
package main | ||
|
||
func main() { | ||
mypackage.MyFunc() | ||
} |
5 changes: 5 additions & 0 deletions
5
presentations/2024-06-17--gophercon-berlin--manfred/code/no-flag-additional.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type Node struct { | ||
Value int | ||
Next *Node | ||
} | ||
mypackage.ProcessNode(&Node{Value: 1, Next: &Node{Value: 2}}) |
1 change: 1 addition & 0 deletions
1
presentations/2024-06-17--gophercon-berlin--manfred/code/no-flag-after.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$> mypackage.MyFunc("stringValue", 42) |
8 changes: 8 additions & 0 deletions
8
presentations/2024-06-17--gophercon-berlin--manfred/code/no-flag-before.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
func main() { | ||
flag.StringVar(&myStringFlag, "stringFlag", "default", "usage") | ||
flag.IntVar(&myIntFlag, "intFlag", 0, "usage") | ||
flag.Parse() | ||
MyFunc(*myStringFlag, *myIntFlag) | ||
} | ||
|
||
$> myprogram --stringFlag foo --intFlag 42 |
9 changes: 9 additions & 0 deletions
9
presentations/2024-06-17--gophercon-berlin--manfred/code/no-fs-after.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type User struct { | ||
Name string | ||
Age int | ||
} | ||
var users []User | ||
users = append(users, User{"John Doe", 30}) | ||
for _, user := range users { | ||
/* logic */ | ||
} |
8 changes: 8 additions & 0 deletions
8
presentations/2024-06-17--gophercon-berlin--manfred/code/no-fs-before.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import "database/sql" | ||
db, err := sql.Open("driver", "source") | ||
_, err := db.Exec("CREATE TABLE IF NOT EXISTS users ...") | ||
_, err := db.Exec("INSERT INTO users ...") | ||
rows, err := db.Query("SELECT fields FROM users ...") | ||
defer rows.Close() | ||
for rows.Next() { /* logic */} | ||
err := rows.Err() |
5 changes: 5 additions & 0 deletions
5
presentations/2024-06-17--gophercon-berlin--manfred/code/no-main-after.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
func Foo() { | ||
// logic | ||
} | ||
|
||
$> myprogram.Foo() // resumes, executes, pauses |
6 changes: 6 additions & 0 deletions
6
presentations/2024-06-17--gophercon-berlin--manfred/code/no-main-before.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
func main() { | ||
// logic | ||
} | ||
func init() { | ||
// logic | ||
} |
4 changes: 4 additions & 0 deletions
4
presentations/2024-06-17--gophercon-berlin--manfred/code/no-marshaling-after.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
func SomeHandler() MyStruct { | ||
data := MyStruct{Field: "value"} | ||
return data | ||
} |
4 changes: 4 additions & 0 deletions
4
presentations/2024-06-17--gophercon-berlin--manfred/code/no-marshaling-before.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
func SomeHandler(w http.ResponseWriter, r *http.Request) { | ||
data := MyStruct{Field: "value"} // go logic | ||
_, err := json.NewEncoder(w).Encode(data) | ||
} |
Oops, something went wrong.