Skip to content

Commit

Permalink
deploy: 395d9f8
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jun 20, 2024
1 parent 4a74d42 commit 6a7ff24
Show file tree
Hide file tree
Showing 18 changed files with 653 additions and 0 deletions.
2 changes: 2 additions & 0 deletions presentations.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ <h4>Sub-directories:</h4>

<dd><a href="presentations/2024-04-11--tokyo-intro-to-gno--leon.html">2024-04-11--tokyo-intro-to-gno--leon</a></dd>

<dd><a href="presentations/2024-06-17--gophercon-berlin--manfred.html">2024-06-17--gophercon-berlin--manfred</a></dd>

</dl>


Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
94 changes: 94 additions & 0 deletions presentations/2024-06-17--gophercon-berlin--manfred.html
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 presentations/2024-06-17--gophercon-berlin--manfred/code.html
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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Unified approach
import "my/package"
mypackage.MyFunc()
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()
}
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}})
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$> mypackage.MyFunc("stringValue", 42)
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
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 */
}
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()
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
func Foo() {
// logic
}

$> myprogram.Foo() // resumes, executes, pauses
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
func main() {
// logic
}
func init() {
// logic
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
func SomeHandler() MyStruct {
data := MyStruct{Field: "value"}
return data
}
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)
}
Loading

0 comments on commit 6a7ff24

Please sign in to comment.