Coder Social home page Coder Social logo

slides's Introduction

Go Lang Slides Examples

This repo has a few examples for using go lang's tool present

A few things to note about this directory:

  • golangbasics.slide is from Drashti Ved repo, along with the assets directory and Golang-Logo.jpg
  • the present.slide and legacy.slide is taken from go lang's present tool website and slightly modified
  • hello directory has a simple hello world script written in go and this is used in a few of the slide presentations
  • slide directory has one more example to show how to override the default stylesheet to modify pagenumber order & colour
    • presenting this directory requires Option 1, see below under Override Style

Installation

To use go lang's present tool you can use either option 1 or 2:

  1. install go lang and the necessary present tool
  2. use go-talks.appspot.com

Option 1

Install a stable version of go for your operating system.

And follow the offical installation instructions

Now you can download and install the present tool in one step

$ go install golang.org/x/tools/cmd/present@latest

You can go to your directory with .slide/.article file(s) written in markdown to create a slide deck to showcase go lang.

After moving to your directory start a session to view your slides through a browser

$ present

go to http://127.0.0.1:3999 (default) on your favourite browser

Option 2

go-talks.appspot.com site plays slide presentations and articles stored on GitHub in the legacy present format, find more about this on present docs. This means if you want to use this option the markdown you must use * as slide titles and not #. Also markdown links must be modified.

For example the present.slide is using legacy present syntax and present_local.slide is using markdown syntax.

The syntax for URLs is:

https://go-talks.appspot.com/github.com/owner/project/file.slide
https://go-talks.appspot.com/github.com/owner/project/sub/directory/file.slide

The supported file extensions (.ext) are .slide and .article but the .html command is not supported

Example

You can present the present.slide, from this repo, by pasting the link below into your browser

https://go-talks.appspot.com/github.com/davidhintelmann/slides/present.slide

or the golangbasics.slide

https://go-talks.appspot.com/github.com/davidhintelmann/slides/golangbasics.slide

Override Style

Since go-talks.appspot.com can not use .html present command invocations you will have to present the slide directory from a local environment i.e. Option 1 above.

slides's People

Contributors

davidhintelmann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.