package style
import "strings"
var keywords = map [string ]*string {
"1" : &Carapace .KeywordPositive ,
"0" : &Carapace .KeywordNegative ,
"y" : &Carapace .KeywordPositive ,
"n" : &Carapace .KeywordNegative ,
"yes" : &Carapace .KeywordPositive ,
"no" : &Carapace .KeywordNegative ,
"true" : &Carapace .KeywordPositive ,
"false" : &Carapace .KeywordNegative ,
"on" : &Carapace .KeywordPositive ,
"off" : &Carapace .KeywordNegative ,
"enable" : &Carapace .KeywordPositive ,
"enabled" : &Carapace .KeywordPositive ,
"disable" : &Carapace .KeywordNegative ,
"disabled" : &Carapace .KeywordNegative ,
"all" : &Carapace .KeywordPositive ,
"some" : &Carapace .KeywordAmbiguous ,
"none" : &Carapace .KeywordNegative ,
"full" : &Carapace .KeywordPositive ,
"empty" : &Carapace .KeywordNegative ,
"loose" : &Carapace .KeywordPositive ,
"strict" : &Carapace .KeywordNegative ,
"public" : &Carapace .KeywordPositive ,
"private" : &Carapace .KeywordNegative ,
"internal" : &Carapace .KeywordPositive ,
"external" : &Carapace .KeywordNegative ,
"asc" : &Carapace .KeywordPositive ,
"ascending" : &Carapace .KeywordPositive ,
"desc" : &Carapace .KeywordNegative ,
"descending" : &Carapace .KeywordNegative ,
"up" : &Carapace .KeywordPositive ,
"down" : &Carapace .KeywordNegative ,
"open" : &Carapace .KeywordPositive ,
"opened" : &Carapace .KeywordPositive ,
"close" : &Carapace .KeywordNegative ,
"closed" : &Carapace .KeywordNegative ,
"always" : &Carapace .KeywordPositive ,
"auto" : &Carapace .KeywordAmbiguous ,
"never" : &Carapace .KeywordNegative ,
"start" : &Carapace .KeywordPositive ,
"started" : &Carapace .KeywordPositive ,
"starting" : &Carapace .KeywordPositive ,
"run" : &Carapace .KeywordPositive ,
"running" : &Carapace .KeywordPositive ,
"inprogress" : &Carapace .KeywordAmbiguous ,
"pause" : &Carapace .KeywordAmbiguous ,
"paused" : &Carapace .KeywordAmbiguous ,
"pausing" : &Carapace .KeywordAmbiguous ,
"restart" : &Carapace .KeywordAmbiguous ,
"restarted" : &Carapace .KeywordAmbiguous ,
"restarting" : &Carapace .KeywordAmbiguous ,
"remove" : &Carapace .KeywordNegative ,
"removed" : &Carapace .KeywordNegative ,
"removing" : &Carapace .KeywordNegative ,
"stop" : &Carapace .KeywordNegative ,
"stopped" : &Carapace .KeywordNegative ,
"stopping" : &Carapace .KeywordNegative ,
"exit" : &Carapace .KeywordNegative ,
"exited" : &Carapace .KeywordNegative ,
"exiting" : &Carapace .KeywordNegative ,
"dead" : &Carapace .KeywordNegative ,
"create" : &Carapace .KeywordPositive ,
"created" : &Carapace .KeywordPositive ,
"delete" : &Carapace .KeywordNegative ,
"deleted" : &Carapace .KeywordNegative ,
"onsuccess" : &Carapace .KeywordPositive ,
"onfailure" : &Carapace .KeywordNegative ,
"onerror" : &Carapace .KeywordNegative ,
"success" : &Carapace .KeywordPositive ,
"unknown" : &Carapace .KeywordUnknown ,
"backoff" : &Carapace .KeywordUnknown ,
"warn" : &Carapace .KeywordAmbiguous ,
"error" : &Carapace .KeywordNegative ,
"failed" : &Carapace .KeywordNegative ,
"fatal" : &Carapace .KeywordNegative ,
"nonblock" : &Carapace .KeywordAmbiguous ,
"block" : &Carapace .KeywordNegative ,
"ondemand" : &Carapace .KeywordAmbiguous ,
"active" : &Carapace .KeywordPositive ,
"inactive" : &Carapace .KeywordNegative ,
"healthy" : &Carapace .KeywordPositive ,
"unhealthy" : &Carapace .KeywordNegative ,
"pending" : &Carapace .KeywordAmbiguous ,
"idle" : &Carapace .KeywordAmbiguous ,
"keep" : &Carapace .KeywordPositive ,
"continue" : &Carapace .KeywordPositive ,
"allow" : &Carapace .KeywordPositive ,
"deny" : &Carapace .KeywordNegative ,
"ask" : &Carapace .KeywordAmbiguous ,
"hidden" : &Carapace .KeywordNegative ,
"visible" : &Carapace .KeywordPositive ,
"tracked" : &Carapace .KeywordPositive ,
"untracked" : &Carapace .KeywordAmbiguous ,
"dirty" : &Carapace .KeywordNegative ,
"default" : &Carapace .KeywordAmbiguous ,
"quiet" : &Carapace .KeywordAmbiguous ,
"missing" : &Carapace .KeywordNegative ,
"merged" : &Carapace .KeywordPositive ,
"manual" : &Carapace .KeywordAmbiguous ,
"canceled" : &Carapace .KeywordNegative ,
"cancelled" : &Carapace .KeywordNegative ,
"scheduled" : &Carapace .KeywordAmbiguous ,
"resolved" : &Carapace .KeywordPositive ,
"unresolved" : &Carapace .KeywordNegative ,
"connected" : &Carapace .KeywordPositive ,
"disconnected" : &Carapace .KeywordNegative ,
"present" : &Carapace .KeywordPositive ,
"absent" : &Carapace .KeywordNegative ,
"exists" : &Carapace .KeywordPositive ,
"notexists" : &Carapace .KeywordNegative ,
"only" : &Carapace .KeywordAmbiguous ,
"silent" : &Carapace .KeywordAmbiguous ,
"completed" : &Carapace .KeywordPositive ,
"skipped" : &Carapace .KeywordAmbiguous ,
"failure" : &Carapace .KeywordNegative ,
}
var keywordReplacer = strings .NewReplacer (
"-" , "" ,
"_" , "" ,
)
func ForKeyword (s string , _ Context ) string {
if _style , ok := keywords [keywordReplacer .Replace (strings .ToLower (s ))]; ok {
return *_style
}
return Default
}
The pages are generated with Golds v0.8.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .