Goland Style
Publisher: BoyceThemes in package: 2
An unofficial GoLand-style Go development experience for Visual Studio Code.
An unofficial GoLand-style Go development experience for Visual Studio Code.
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 |
|---|---|---|
| comment, punctuation.definition.comment | #7A7E85 | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new | #CF8E6D | — |
| string, string.quoted, string.template, punctuation.definition.string | #6AAB73 | — |
| constant.numeric, constant.language.boolean, constant.language.nil | #2AACB8 | — |
| entity.name.function, meta.function.declaration entity.name.function | #56A8F5 | — |
| support.function, variable.function | #B09D79 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.interface, support.type | #6FAFBD | — |
| entity.name.namespace, entity.name.package, support.class | #AFBF7E | — |
| constant.other, variable.other.constant, entity.name.tag | #C77DBB | — |
| invalid, invalid.illegal | #F75464 | — |
| markup.heading, markup.bold | #56A8F5 | bold |
| markup.italic | #BCBEC4 | italic |
| markup.inserted | #6AAB73 | — |
| markup.deleted | #F75464 | — |
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 |
|---|---|---|
| comment, punctuation.definition.comment | #8C8C8C | italic |
| keyword, storage.type, storage.modifier, keyword.control | #0033B3 | — |
| string | #067D17 | — |
| constant.numeric, constant.language.boolean, constant.language.nil | #1750EB | — |
| entity.name.function, entity.name.type, entity.name.class, entity.name.struct, entity.name.interface | #00627A | — |
| support.function, variable.function, entity.name.namespace, entity.name.package | #7A7A43 | — |
| constant.other, variable.other.constant | #871094 | — |
| invalid | #D91526 | — |
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}!`;
}
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}!`;
}