You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sgr.go
    path of file: ./repos/faasd/vendor/github.com/morikuni/aec
    
    the code of the file until where you have to start completion: package aec

import (
	"fmt"
)

// RGB3Bit is a 3bit RGB color.
type RGB3Bit uint8

// RGB8Bit is a 8bit RGB color.
type RGB8Bit uint8

func newSGR(n uint) ANSI {
	return newAnsi(fmt.Sprintf(esc+"%dm", n))
}

// NewRGB3Bit create a RGB3Bit from given RGB.
func NewRGB3Bit(r, g, b uint8) RGB3Bit {
	return RGB3Bit((r >> 7) | ((g >> 6) & 0x2) | ((b >> 5) & 0x4))
}

// NewRGB8Bit create a RGB8Bit from given RGB.
func NewRGB8Bit(r, g, b uint8) RGB8Bit {
	return RGB8Bit(16 + 36*(r/43) + 6*(g/43) + b/43)
}

// Color3BitF set the foreground color of text.
func Color3BitF(c RGB3Bit) ANSI {
	return newAnsi(fmt.Sprintf(esc+"%dm", c+30))
}

// Color3BitB set the background color of text.
func Color3BitB(c RGB3Bit) ANSI {
	return newAnsi(fmt.Sprintf(esc+"%dm", c+40))
}

// Color8BitF set the foreground color of text.
func Color8BitF(c RGB8Bit) ANSI {
	return newAnsi(fmt.Sprintf(esc+"38;5;%dm", c))
}

// Color8BitB set
    
func init() {
	Bold = newSGR(1)
	Faint = newSGR(2)
	Italic = newSGR(3)
	Underline = newSGR(4)
	BlinkSlow = newSGR(5)
	BlinkRapid = newSGR(6)
	Inverse = newSGR(7)
	Conceal = newSGR(8)
	CrossOut = newSGR(9)

	BlackF = newSGR(30)
	RedF = newSGR(31)
	GreenF = newSGR(32)
	YellowF = newSGR(33)
	BlueF = newSGR(34)
	MagentaF = newSGR(35)
	CyanF = newSGR(36)
	WhiteF = newSGR(37)

	DefaultF = newSGR(39)

	BlackB = newSGR(40)
	RedB = newSGR(41)
	GreenB = newSGR(42)
	YellowB = newSGR(43)
	BlueB = newSGR(44)
	MagentaB = newSGR(45)
	CyanB = newSGR(46)
	WhiteB = newSGR(47)

	DefaultB = newSGR(49)

	Frame = newSGR(51)
	Encircle = newSGR(52)
	Overline = newSGR(53)

	LightBlackF = newSGR(90)
	LightRedF = newSGR(91)
	LightGreenF = newSGR(92)
	LightYellowF = newSGR(93)
	LightBlueF = newSGR(94)
	LightMagentaF = newSGR(95)
	LightCyanF = newSGR(96)
	LightWhiteF = newSGR(97)

	LightBlackB = newSGR(100)
	LightRedB = newSGR(101)
	LightGreenB = newSGR(102)
	LightYellowB = newSGR(103)
	LightBlueB = newSGR(104)
	LightMagentaB = newSGR(105)
	LightCyanB = newSGR(106)
	LightWhiteB = newSGR(107)
}