Phelipe Golang
Publisher: Phelipe Gabriel dos Santos VianaThemes in package: 1
A fluorescent blue dark theme designed for productive Go development.
A fluorescent blue dark theme designed for productive Go development.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #dbeafe | — |
| meta.embedded, source.groovy.embedded, meta.jsx.children, string meta.image.inline.markdown, variable.legacy.builtin.python | #FFFFFF | — |
| comment | #8FA6D8 | — |
| keyword.operator.class, keyword.operator, constant.other, source.php.embedded.line | #FFFFFF | |
| variable, support.other.variable, string.other.link, string.regexp, entity.name.tag, entity.other.attribute-name, meta.tag, declaration.tag, markup.deleted.git_gutter | #ffb86c | — |
| constant.numeric, constant.language, support.constant, constant.character, variable.parameter, punctuation.section.embedded, keyword.other.unit | #FFAD33 | |
| entity.name.class, entity.name.type, entity.name.namespace, entity.name.scope-resolution, support.type, support.class | #FFF2B8 | |
| string, constant.other.symbol, entity.other.inherited-class, punctuation.separator.namespace.ruby, markup.heading, markup.inserted.git_gutter | #B8F56A | |
| keyword.operator, constant.other.color | #57EFFF | — |
| entity.name.function, support.function, keyword.other.special-method, markup.changed.git_gutter | #7CFF6B | bold |
| keyword, storage, storage.type, entity.name.tag.css, entity.name.tag.less | #E5A6FF | |
| invalid | #ff8f5f | |
| meta.separator | #FFFFFF | — |
| invalid.deprecated | #cd9731 | |
| markup.inserted.diff, markup.deleted.diff, meta.diff.header.to-file, meta.diff.header.from-file | #FFFFFF | — |
| markup.inserted.diff, meta.diff.header.to-file | #718c00 | — |
| markup.deleted.diff, meta.diff.header.from-file | #e06c3a | — |
| meta.diff.header.from-file, meta.diff.header.to-file | #4271ae | — |
| meta.diff.range | #3e999f | italic |
| markup.quote | #FFC58F | — |
| markup.list | #BBDAFF | — |
| markup.bold, markup.italic | #FFC58F | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #ffb86c | |
| markup.heading | — | bold |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| punctuation, meta.brace, meta.delimiter | #a9bddf | — |
| entity.name.tag.tsx, entity.name.tag.jsx, support.class.component.tsx, support.class.component.jsx | #89ddff | — |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name.css | #82aaff | — |
| meta.function-call, meta.function-call entity.name.function, meta.function-call support.function, variable.function, support.function.any-method, meta.method-call, entity.name.function.member, entity.name.function.method | #57EFFF | |
| entity.name.function, meta.function entity.name.function, meta.method.declaration entity.name.function, meta.definition.method entity.name.function | #7CFF6B | bold |
| entity.name.package.go, support.other.package.go, variable.other.package.go | #57D6FF | |
| entity.name.type.go, entity.name.type.interface.go, entity.name.type.struct.go, support.type.go, storage.type.go | #FFF36E | bold |
| entity.name.function.go, entity.name.function.method.go | #7CFF6B | bold |
| meta.function-call.go entity.name.function.go, meta.function-call.go variable.function.go, support.function.go | #57EFFF | |
| variable.parameter.go, variable.parameter.receiver.go, meta.function.parameters.go variable.other.go | #FFAD5C | |
| variable.other.member.go, variable.other.property.go, entity.name.variable.field.go | #A9D8FF | |
| constant.language.go, constant.other.go, variable.other.constant.go | #FFD36A | |
| constant.language.nil.go, constant.language.null.go | #FF8F70 | italic |
| constant.language.boolean.go, constant.language.true.go, constant.language.false.go | #FFD36A | |
| support.function.builtin.go, support.function.go | #57EFFF | |
| string.quoted.raw.go, meta.struct-tag.go string | #9FE870 |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}