daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Jun 11th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package main
  2.  
  3. import (
  4.     "html/template"
  5.     "log"
  6.     "os"
  7. )
  8.  
  9. func main() {
  10.     tpl, err := template.ParseFiles("tpl.gohtml")
  11.     if err != nil {
  12.         log.Fatalln(err)
  13.     }
  14.     err = tpl.Execute(os.Stdout, nil)
  15.     if err != nil {
  16.         log.Fatalln(err)
  17.     }
  18. }
  19.  
  20. /*
  21. <!DOCTYPE html>
  22. <html lang="en">
  23.     <head>
  24.         <meta charset="UTF-8">
  25.         <title>Hello World!</title>
  26.     </head>
  27.     <body>
  28.         <h1>Hello GO Website!</h1>
  29.     </body>
  30. </html>
  31. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top