hello

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 3 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

H config of hello

Functions

This section is empty.

Types

type Config added in v0.1.0

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

Config implements tao.Config

func (*Config) Name added in v0.1.0

func (h *Config) Name() string

Name of Config

func (*Config) RunAfter added in v0.1.0

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

RunAfter defines pre task names

func (*Config) ToTask added in v0.1.0

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

ToTask transform itself to Task

func (*Config) ValidSelf added in v0.1.0

func (h *Config) ValidSelf()

ValidSelf with some default values

Jump to

Keyboard shortcuts

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