Skip to content
Permalink
Browse files

using https as many places as possible (#94)

including the youtube embeds, which remove the mixed content errors that chrome has been throwing, which have effectively hidden them
  • Loading branch information...
arschles committed Sep 25, 2016
1 parent 238d4e2 commit 2844ed6dff56103034e867e503ba37a541965c6f
Showing with 68 additions and 68 deletions.
  1. +4 −4 README.md
  2. +3 −3 episode0/README.md
  3. +1 −1 episode0/hashtable.go
  4. +2 −2 episode1/README.md
  5. +2 −2 episode10/README.md
  6. +2 −2 episode11/README.md
  7. +2 −2 episode12/README.md
  8. +3 −3 episode13/README.md
  9. +3 −3 episode14/README.md
  10. +3 −3 episode15/README.md
  11. +2 −2 episode2/README.md
  12. +2 −2 episode3/README.md
  13. +2 −2 episode4/README.md
  14. +1 −1 episode4/index.html
  15. +2 −2 episode5/README.md
  16. +1 −1 episode5/models/mongo_db.go
  17. +4 −4 episode6/README.md
  18. +1 −1 episode6/handlers/ascii_cat_test.go
  19. +3 −3 episode7/README.md
  20. +1 −1 episode7/handlers/ascii_cat_test.go
  21. +2 −2 episode8/README.md
  22. +2 −2 episode9/README.md
  23. +1 −1 www/README.md
  24. +1 −1 www/content/screencast/episode_0_writing_testable_code_and_fast_unit_tests_using_mocking.md
  25. +1 −1 www/content/screencast/episode_10_concurrency_the_daily_walk.md
  26. +1 −1 www/content/screencast/episode_11_json_apis.md
  27. +1 −1 www/content/screencast/episode_12_concurrency_eating_tapas.md
  28. +1 −1 www/content/screencast/episode_13_using_database_sql.md
  29. +2 −2 www/content/screencast/episode_14_using_templates.md
  30. +1 −1 www/content/screencast/episode_15_internet_cafe.md
  31. +1 −1 www/content/screencast/episode_1_building_restful_api_using_only_std_lib.md
  32. +1 −1 www/content/screencast/episode_2_debugging_with_godebug.md
  33. +2 −2 www/content/screencast/episode_3_writing_webapps_with_gorilla_mux.md
  34. +1 −1 www/content/screencast/episode_4_websockets_with_gorilla_websocket.md
  35. +1 −1 www/content/screencast/episode_5_building_full_stack_webapps.md
  36. +1 −1 www/content/screencast/episode_6_unit_testing_http_handlers.md
  37. +1 −1 www/content/screencast/episode_7_vendoring_your_dependencies_in_go.md
  38. +1 −1 www/content/screencast/episode_8_profiling.md
  39. +1 −1 www/content/screencast/episode_9_the_optional_singleton_pattern.md
  40. +1 −1 www/themes/default/archetypes/screencast.md
@@ -4,11 +4,11 @@

This repository has code and outlines for [Go In 5 Minutes Screencasts](htttp://bitly.com/goin5minutesyt). All content (code samples, outlines, etc...) is organized into folders, starting with [`episode0`](https://github.com/arschles/go-in-5-minutes/tree/master/episode0) and going from there.

Full descriptions and videos are at http://www.goin5minutes.com/screencasts/index.html.
Full descriptions and videos are at https://www.goin5minutes.com/screencasts/index.html.

Shortened URL for this repository: http://bitly.com/goin5minutes
Shortened URL for this repository: https://bitly.com/goin5minutes

Shortened URL for screencasts: http://bitly.com/goin5minutesyt
Shortened URL for screencasts: https://bitly.com/goin5minutesyt

# Request A Screencast

@@ -24,7 +24,7 @@ If you're just getting started with the series, want to download the screencasts

# Email Newsletter

I send out an email newsletter intermittently with screencasts, additional information and resources. I encourage you to sign up for it at http://www.goin5minutes.com/subscribe/index.html.
I send out an email newsletter intermittently with screencasts, additional information and resources. I encourage you to sign up for it at https://www.goin5minutes.com/subscribe/index.html.

# Issues With Code, Documentation, etc...

@@ -1,19 +1,19 @@
# Mocking in Go

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_0_writing_testable_code_and_fast_unit_tests_using_mocking/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_0_writing_testable_code_and_fast_unit_tests_using_mocking/)

Go in 5 Minutes, episode 0.

This screencast focuses on mocking external dependencies so you can write fast,
focused unit tests for your code.

Screencast video:
http://www.goin5minutes.com/screencast/episode_0_writing_testable_code_and_fast_unit_tests_using_mocking/
https://www.goin5minutes.com/screencast/episode_0_writing_testable_code_and_fast_unit_tests_using_mocking/

## Outline

1. Execute your code in isolation
2. Swap out dependencies with local implementation. Example: [Redis client](http://godoc.org/github.com/hoisie/redis)
2. Swap out dependencies with local implementation. Example: [Redis client](https://godoc.org/github.com/hoisie/redis)
3. Other languages:
- Reflection
- Monkey patching
@@ -8,7 +8,7 @@ var (

// HashTable is the interface for a simple hash table. It's designed in such a way
// that some libraries immediately adhere to it with no extra code.
// One such library is http://godoc.org/github.com/hoisie/redis
// One such library is https://godoc.org/github.com/hoisie/redis
type HashTable interface {
Get(key string) ([]byte, error)
Set(key string, value []byte) error
@@ -1,13 +1,13 @@
# Building a RESTful API with net/http

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_1_building_restful_api_using_only_std_lib/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_1_building_restful_api_using_only_std_lib/)

Go in 5 Minutes, episode 1.

This screencast shows how to build a non-trivial HTTP API using nothing but [`net/http`](https://godoc.org/net/http).

Screencast video:
http://www.goin5minutes.com/screencast/episode_1_building_restful_api_using_only_std_lib/
https://www.goin5minutes.com/screencast/episode_1_building_restful_api_using_only_std_lib/

## Administrivia

@@ -1,13 +1,13 @@
# Concurrency Series: The Daily Walk

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_10_concurrency_the_daily_walk/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_10_concurrency_the_daily_walk/)

Go in 5 Minutes, episode 10.

This screencast overviews "The Daily Walk" problem on [Trivial Concurrency Exercises for the Confused Newbie Gopher](http://whipperstacker.com/2015/10/05/3-trivial-concurrency-exercises-for-the-confused-newbie-gopher/), and provides a solution.

Screencast video:
http://www.goin5minutes.com/screencast/episode_10_concurrency_the_daily_walk/
https://www.goin5minutes.com/screencast/episode_10_concurrency_the_daily_walk/

## Shameless Plug/Reminder

@@ -1,6 +1,6 @@
# REST APIs: Separation of Concerns

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_11_json_apis/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_11_json_apis/)

Go in 5 Minutes, episode 11.

@@ -9,7 +9,7 @@ This screencast discusses how to structure a REST API server in Go. It outlines
See [BUILD_AND_TEST.md](./BUILD_AND_TEST.md) for instructions on how to build and test this code.

Screencast video:
http://www.goin5minutes.com/screencast/episode_11_json_apis/
https://www.goin5minutes.com/screencast/episode_11_json_apis/

# Happy New Year!

@@ -1,6 +1,6 @@
# Concurrency Series: Eating Tapas

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_12_concurrency_eating_tapas/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_12_concurrency_eating_tapas/)

Go in 5 Minutes, episode 12.

@@ -9,7 +9,7 @@ This screencast overviews the "Eating Tapas" problem on [Trivial Concurrency Exe
We're continuing the concurrency series - see https://github.com/arschles/go-in-5-minutes/issues/14 for progress.

Screencast video:
http://www.goin5minutes.com/screencast/episode_12_concurrency_eating_tapas/
https://www.goin5minutes.com/screencast/episode_12_concurrency_eating_tapas/

# Outline

@@ -1,13 +1,13 @@
# Using `database/sql`

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_13_using_database_sql/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_13_using_database_sql/)

Go in 5 Minutes, episode 13.

This screencast shows the basics of using the `database/sql` package.

Screencast video:
http://www.goin5minutes.com/screencast/episode_13_using_database_sql/
https://www.goin5minutes.com/screencast/episode_13_using_database_sql/

# Outline

@@ -21,4 +21,4 @@ To build and run the code in this directory, ensure you have [glide](https://git

# Additional Resources

http://go-database-sql.org has excellent, detailed documentation on the `database/sql` package. If you find the [documentation on godoc.org](http://godoc.org/database/sql) lacking in some area, I encourage you to check out that site.
http://go-database-sql.org has excellent, detailed documentation on the `database/sql` package. If you find the [documentation on godoc.org](https://godoc.org/database/sql) lacking in some area, I encourage you to check out that site.
@@ -1,13 +1,13 @@
# Building Web Pages Using `html/template`

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_14_using_templates/index.html)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_14_using_templates/index.html)

Go in 5 Minutes, episode 14.

This screencast shows the basics of using the `html/template` package to build complex web pages with Go.

Screencast video:
http://www.goin5minutes.com/screencast/episode_14_using_templates/index.html
https://www.goin5minutes.com/screencast/episode_14_using_templates/index.html

Complementary extended screencast:
https://gum.co/gifm-x-14
@@ -20,4 +20,4 @@ https://gum.co/gifm-x-14

# Additional resources

The GoDoc for `html/template` (http://godoc.org/html/template) is very high quality and has great explanations on how the package works and how to use it.
The GoDoc for `html/template` (https://godoc.org/html/template) is very high quality and has great explanations on how the package works and how to use it.
@@ -1,6 +1,6 @@
# Concurrency Series: Internet Cafe

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_15_internet_cafe/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_15_internet_cafe/)

Go in 5 Minutes, episode 15.

@@ -9,12 +9,12 @@ This screencast overviews the "Internet Cafe" problem on [Trivial Concurrency Ex
We're finishing up the concurrency series - see https://github.com/arschles/go-in-5-minutes/issues/14 for what we've covered.

Screencast video:
http://www.goin5minutes.com/screencast/episode_15_internet_cafe/
https://www.goin5minutes.com/screencast/episode_15_internet_cafe/

# Other Notes

- Extended screencast: https://gum.co/gifm-x-15
- __Reminder: subscribe to the newsletter at http://www.goin5minutes.com/subscribe/__
- __Reminder: subscribe to the newsletter at https://www.goin5minutes.com/subscribe/__

# Extended Screencast

@@ -1,14 +1,14 @@
# Debugging Go Programs with godebug

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_2_debugging_with_godebug/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_2_debugging_with_godebug/)

Go in 5 Minutes, episode 2.

This screencast shows how to use [godebug](https://github.com/mailgun/godebug) to debug
programs. I'll show an example of debugging a concurrent program.

Screencast video:
http://www.goin5minutes.com/screencast/episode_2_debugging_with_godebug/
https://www.goin5minutes.com/screencast/episode_2_debugging_with_godebug/

## Reminder

@@ -1,13 +1,13 @@
# Writing Webapps With Gorilla Mux

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_3_writing_webapps_with_gorilla_mux/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_3_writing_webapps_with_gorilla_mux/)

Go in 5 Minutes, episode 3.

This screencast shows how to take advantage of [Gorilla Mux](https://github.com/gorilla/mux) to build a full featured REST API. It was requested in https://github.com/arschles/go-in-5-minutes/issues/18.

Screencast video:
http://www.goin5minutes.com/screencast/episode_3_writing_webapps_with_gorilla_mux/
https://www.goin5minutes.com/screencast/episode_3_writing_webapps_with_gorilla_mux/

## Outline

@@ -1,14 +1,14 @@
# Using Websockets

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_4_websockets_with_gorilla_websocket/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_4_websockets_with_gorilla_websocket/)

Go in 5 Minutes, episode 4.

This screencast explains some of the concepts around Websockets and presents an example
that shows how to build a websocket server.

Screencast video:
http://www.goin5minutes.com/screencast/episode_4_websockets_with_gorilla_websocket/
https://www.goin5minutes.com/screencast/episode_4_websockets_with_gorilla_websocket/

## Thanks

@@ -2,7 +2,7 @@
<html>
<head>
<title>Chat Example</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type= "text/javascript">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type= "text/javascript">
</script>
<script type="text/javascript">
$(function() {
@@ -1,13 +1,13 @@
# Building Web Applications in Go

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_5_building_full_stack_webapps/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_5_building_full_stack_webapps/)

Go in 5 Minutes, episode 5.

This screencast shows the general layout and structure of a web application, as requested in [Issue # 24](https://github.com/arschles/go-in-5-minutes/issues/24).

Screencast video:
http://www.goin5minutes.com/screencast/episode_5_building_full_stack_webapps/
https://www.goin5minutes.com/screencast/episode_5_building_full_stack_webapps/

## YouTube Subscriptions and Github stars

@@ -80,7 +80,7 @@ func (m *MongoDB) Upsert(key string, val Model) (bool, error) {
return false, err
}
// the Updated field is set when already existed, otherwise the UpsertedID field is set.
// see the func at http://bazaar.launchpad.net/+branch/mgo/v2/view/head:/session.go#L1896
// see the func at https://bazaar.launchpad.net/+branch/mgo/v2/view/head:/session.go#L1896
return cInfo.UpsertedId != nil, nil
}

@@ -1,19 +1,19 @@
# Unit Testing HTTP Handlers

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_6_unit_testing_http_handlers/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_6_unit_testing_http_handlers/)

Go in 5 Minutes, episode 6.

This screencast shows two ways to quickly and effectively test your [`net/http` handlers](https://godoc.org/net/http#Handler).

Screencast video:
http://www.goin5minutes.com/screencast/episode_6_unit_testing_http_handlers/
https://www.goin5minutes.com/screencast/episode_6_unit_testing_http_handlers/

## [goin5minutes.com](http://www.goin5minutes.com)
## [goin5minutes.com](https://www.goin5minutes.com)

Our website is up and running! Right now, it houses a permanent list of all screencasts, but I'm planning to expand it with more auxiliary content.

__Please [sign up for our newsletter](http://www.goin5minutes.com/subscribe) to get emails when new screencasts come out.__
__Please [sign up for our newsletter](https://www.goin5minutes.com/subscribe) to get emails when new screencasts come out.__

## Outline

@@ -45,5 +45,5 @@ func TestAsciiCatRespRecorder(t *testing.T) {
t.Fatalf("got unexpected octocat string [%s]", bodyStr)
}
// ResponseRecorder records more useful data about the response.
// see http://godoc.org/net/http/httptest#ResponseRecorder for details
// see https://godoc.org/net/http/httptest#ResponseRecorder for details
}
@@ -1,17 +1,17 @@
# Vendoring Dependencies in Go

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_7_vendoring_your_dependencies_in_go/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_7_vendoring_your_dependencies_in_go/)

Go in 5 Minutes, episode 7.

This screencast shows how to vendor your dependencies in Go, the modern way.

Screencast video:
http://www.goin5minutes.com/screencast/episode_7_vendoring_your_dependencies_in_go/
https://www.goin5minutes.com/screencast/episode_7_vendoring_your_dependencies_in_go/

## Email Newsletter

Quick reminder to sign up at http://www.goin5minutes.com/subscribe
Quick reminder to sign up at https://www.goin5minutes.com/subscribe

The first email will go out this week!

@@ -44,5 +44,5 @@ func TestAsciiCatRespRecorder(t *testing.T) {
t.Fatalf("got unexpected octocat string [%s]", bodyStr)
}
// ResponseRecorder records more useful data about the response.
// see http://godoc.org/net/http/httptest#ResponseRecorder for details
// see https://godoc.org/net/http/httptest#ResponseRecorder for details
}
@@ -1,14 +1,14 @@
# Profiling Go Programs

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_8_profiling/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_8_profiling/)

Go in 5 Minutes, episode 8.

This screencast goes into detail on how to profile Go programs. See https://blog.golang.org/profiling-go-programs for much more details on profiling.


Screencast video:
http://www.goin5minutes.com/screencast/episode_8_profiling/
https://www.goin5minutes.com/screencast/episode_8_profiling/

## No Screencast The Weekend of 11/28/2015

@@ -1,13 +1,13 @@
# The Optional Singleton Pattern

[![Watch The Screencast](http://www.goin5minutes.com/img/watch-screencast.svg)](http://www.goin5minutes.com/screencast/episode_9_the_optional_singleton_pattern/)
[![Watch The Screencast](https://www.goin5minutes.com/img/watch-screencast.svg)](https://www.goin5minutes.com/screencast/episode_9_the_optional_singleton_pattern/)

Go in 5 Minutes, episode 9.

This screencast talks about a simple pattern for writing convenient, usable libraries.

Screencast video:
http://www.goin5minutes.com/screencast/episode_9_the_optional_singleton_pattern/
https://www.goin5minutes.com/screencast/episode_9_the_optional_singleton_pattern/

## Welcome Back!

@@ -1,6 +1,6 @@
# Go In 5 Minutes

This folder has code to build the http://goin5minutes.com website. If you're looking for
This folder has code to build the https://www.goin5minutes.com website. If you're looking for
the Go In 5 Minutes example code and outlines, please see the [root directory](https://github.com/arschles/go-in-5-minutes).

# Create a New Screencast Page
@@ -17,7 +17,7 @@ We show how to write code that is extensible and testable and then how to write
type="text/html"
width="640"
height="390"
src="http://www.youtube.com/embed/mk4BCLimksY?autoplay=0&origin=http://www.goin5minutes.com"
src="https://www.youtube.com/embed/mk4BCLimksY?autoplay=0&origin=https://www.goin5minutes.com"
frameborder="0"
></iframe>
@@ -15,7 +15,7 @@ We describe the problem #1 on [Trivial Concurrency Exercises for the Confused Ne
type="text/html"
width="640"
height="390"
src="http://www.youtube.com/embed/ylWpMN3UREo?autoplay=0&origin=http://www.goin5minutes.com"
src="https://www.youtube.com/embed/ylWpMN3UREo?autoplay=0&origin=https://www.goin5minutes.com"
frameborder="0"
></iframe>
@@ -15,7 +15,7 @@ We show how to structure and build a complete JSON API in a Go server. This scre
type="text/html"
width="640"
height="390"
src="http://www.youtube.com/embed/xRF0xdouqT8?autoplay=0&origin=http://www.goin5minutes.com"
src="https://www.youtube.com/embed/xRF0xdouqT8?autoplay=0&origin=https://www.goin5minutes.com"
frameborder="0"
></iframe>

0 comments on commit 2844ed6

Please sign in to comment.
You can’t perform that action at this time.