tao_hello

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

README

tao-hello

  _   _  U _____ u  _       _       U  ___ u      _____      _      U  ___ u 
 |'| |'| \| ___"|/ |"|     |"|       \/"_ \/     |_ " _| U  /"\  u   \/"_ \/ 
/| |_| |\ |  _|" U | | u U | | u     | | | |       | |    \/ _ \/    | | | | 
U|  _  |u | |___  \| |/__ \| |/__.-,_| |_| |      /| |\   / ___ \.-,_| |_| | 
 |_| |_|  |_____|  |_____| |_____|\_)-\___/      u |_|U  /_/   \_\\_)-\___/  
 //   \\  <<   >>  //  \\  //  \\      \\        _// \\_  \\    >>     \\    
(_") ("_)(__) (__)(_")("_)(_")("_)    (__)      (__) (__)(__)  (__)   (__)  

An Example to print string for times, init.go & config.go are needed!

Documentation

Index

Constants

View Source
const ConfigKey = "hello"

ConfigKey for this repo

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloConfig

type HelloConfig struct {
	Print     string   `json:"print"`
	Times     int      `json:"times"`
	RunAfter_ []string `json:"run_after,omitempty"`
}

HelloConfig implements tao.Config

func (*HelloConfig) Default

func (h *HelloConfig) Default() tao.Config

Default config

func (*HelloConfig) RunAfter

func (h *HelloConfig) RunAfter() []string

RunAfter defines pre task names

func (*HelloConfig) ToTask

func (h *HelloConfig) ToTask() tao.Task

ToTask transform itself to Task

func (*HelloConfig) ValidSelf

func (h *HelloConfig) ValidSelf()

ValidSelf with some default values

Jump to

Keyboard shortcuts

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