20 lines
321 B
Go
20 lines
321 B
Go
package bootstrap
|
|
|
|
import "fmt"
|
|
|
|
func getButtonVariant(variant string) string {
|
|
if variant == "" {
|
|
return "btn"
|
|
} else {
|
|
return fmt.Sprintf("btn btn-%s", variant)
|
|
}
|
|
}
|
|
|
|
func getAlertVariant(variant string) string {
|
|
if variant == "" {
|
|
return "alert"
|
|
} else {
|
|
return fmt.Sprintf("alert alert-%s", variant)
|
|
}
|
|
}
|