rating

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package rating turns a country's age ratings, such as PG-13 or TV-MA, into the few levels kids profiles choose from.

Index

Constants

View Source
const (
	Unknown    = 0
	LittleKids = 1 // all ages: G, TV-Y, TV-G, U
	Kids       = 2 // PG, TV-Y7, TV-PG
	Teens      = 3 // PG-13, TV-14, 12A
	Adults     = 4 // R, NC-17, TV-MA, 15, 18
)

Levels, from the youngest audience up. 0 means the rating is unknown.

View Source
const DefaultCountry = "US"

DefaultCountry is used when none is set.

Variables

This section is empty.

Functions

func Level

func Level(country, cert string) int

Level says which level a rating from the given country belongs to.

func Name

func Name(level int) string

Name is how the apps describe a kids level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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