Skip to content

Instantly share code, notes, and snippets.

skarllot / enum.go
Created Jun 18, 2015
Enum-like types for Go (golang) that provides string representation
View enum.go
package main
import "fmt"
var enums []string
type Enum int
func (e Enum) String() string {
return enums[int(e)]
magicznyleszek /
Last active Oct 25, 2020
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Element selectors

Element -- selects all h2 elements on the page

h2 {
    foo: bar;
You can’t perform that action at this time.