Comments (5)
@kless Go compiler actually shouldn't compile the tasks into the final binary unless somewhere in your code is calling the task functions. I was told the Go linker would be able to do optimization like this. But I also replied on the Google post to clarify.
from gotask.
I'm using "godoc -http=:6060" in the directory of my package, and godoc is showing the comment of my task: func TaskBuildData(*task.T)
Really, it shows all variables and functions exported from the task file.
from gotask.
godoc
actually hards code to exclude _test.go
that's why tests are excluded. I'm not sure there's a way to ignore doc for a public function. But your tasks shouldn't be compiled into the final binary
from gotask.
@kless I've implemented build tag in gotask (1dc2304) which will exclude tasks in application build. Upgrade gotask and try putting the build tag on top of your task file:
// +build gotask
package main
...
Note that there's an empty line before package definition. Let me know if it doesn't work
from gotask.
It works. Thanks!
from gotask.
Related Issues (12)
- Discover tasks in subfolders
- Alias for a task
- Name of task binaries HOT 2
- Add string type to Flag HOT 1
- Don't generate or compile tasks if gotask is not run in a project folder
- Fill gotask description for compiled tasks HOT 1
- Many external dependencies HOT 11
- Make Exec optionally verbose HOT 1
- More information in T HOT 1
- Can't run tasks HOT 2
- Example sayhello_task.go does not compile ? go 1.5.1 regression ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotask.