examples

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2018 License: BSD-2-Clause Imports: 12 Imported by: 0

README

First you need to build and install goats command:

$ cd $GOPATH/src/goats-html
$ make

This will generate an executable "goats" into $GOPATH/bin. You need to put $GOPATH/bin into
your PATH environment so you can execute goats at anywhere.

To run the examples, execute the following commands in $GOPATH/src:

$ rm $GOPATH/pkg/linux_amd64/goats-html/*
$ goats gen --template_root goats-html/examples/
$ go run --tags goats_devmod goats-html/examples/main.go

To run the dev server, execute the following commands in $GOPATH/src:

$ rm $GOPATH/pkg/linux_amd64/goats-html/*
$ go run --tags goats_devmod goats-html/examples/server/main.go


How to profiling it?

First you need install graphviz.

$ go build -o benchmark goats-html/examples/main.go
$ ./benchmark -cpuprofile=benchmark.prof --benchmark --large

$ go tool pprof benchmark benchmark.prof
Welcome to pprof!  For help, type 'help'.
(pprof) web

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL