Skip to content

Instantly share code, notes, and snippets.

View mtskf's full-sized avatar

Mitsuki Fukunaga mtskf

View GitHub Profile
@mtskf
mtskf / baiscs.md
Last active July 10, 2022 07:54
[GoLang]
@mtskf
mtskf / Dart_Basics.md
Last active January 24, 2023 02:09
[Dart & Flutter] #Flutter #Dard

Types

String? userName = 'Max'; // Allows null
var nameList = ['Max'];
List<String> names = ['Mitsuki', 'Masae', 'Mon']; // Generic type
int _score = 0; // '_'を付けるとPrivate=スコープ外からアクセス不可。
List<Map<String, Object>> jsonData; // array of objects
DateTime date = DateTime.now(); // get date
String dateStr = DateTime.now().toIso8601String();
@mtskf
mtskf / Classes.md
Last active October 11, 2021 22:41
[TypeScript] #TypeScript

クラスの基本的な書き方

class Person {
  fullName: string;

  constructor (public firstName: string, lastName: string, protected age: number) {
    // public/private/protected をつけると、オブジェクトのメンバーとして登録される。
    // 何も付けないとただのローカル変数となる。
    // protected は継承できる。 privateは継承できない。